mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Update chanop flag before emitting nick mode changed signal (patch by Johan Kiviniemi)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4492 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a7f2fc3535
commit
0a9a05c5c0
@ -251,8 +251,6 @@ void modes_type_prefix(IRC_CHANNEL_REC *channel, const char *setby,
|
|||||||
char type, char mode, char *arg, GString *newmode)
|
char type, char mode, char *arg, GString *newmode)
|
||||||
{
|
{
|
||||||
int umode = (unsigned char) mode;
|
int umode = (unsigned char) mode;
|
||||||
nick_mode_change(channel, arg, channel->server->modes[umode].prefix,
|
|
||||||
type, setby);
|
|
||||||
|
|
||||||
if (g_strcasecmp(channel->server->nick, arg) == 0) {
|
if (g_strcasecmp(channel->server->nick, arg) == 0) {
|
||||||
/* see if we need to update channel->chanop */
|
/* see if we need to update channel->chanop */
|
||||||
@ -274,6 +272,9 @@ void modes_type_prefix(IRC_CHANNEL_REC *channel, const char *setby,
|
|||||||
channel->chanop = type == '+';
|
channel->chanop = type == '+';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nick_mode_change(channel, arg, channel->server->modes[umode].prefix,
|
||||||
|
type, setby);
|
||||||
}
|
}
|
||||||
|
|
||||||
int channel_mode_is_set(IRC_CHANNEL_REC *channel, char mode)
|
int channel_mode_is_set(IRC_CHANNEL_REC *channel, char mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user