summaryrefslogtreecommitdiff
path: root/src/irc/core/modes.c
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2007-05-12 13:19:35 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-05-12 13:19:35 +0000
commit0a9a05c5c0e26980bdb8d0b534fb6252c9122abd (patch)
treee91aa8431f0391d3cff5136767cd8b2ab9cbabf1 /src/irc/core/modes.c
parenta7f2fc353522eecc76447b9ee18e18ed399cb872 (diff)
downloadirssi-0a9a05c5c0e26980bdb8d0b534fb6252c9122abd.zip
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
Diffstat (limited to 'src/irc/core/modes.c')
-rw-r--r--src/irc/core/modes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index f07a0d0b..94e3b6b1 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -251,8 +251,6 @@ void modes_type_prefix(IRC_CHANNEL_REC *channel, const char *setby,
char type, char mode, char *arg, GString *newmode)
{
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) {
/* 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 == '+';
}
}
+
+ nick_mode_change(channel, arg, channel->server->modes[umode].prefix,
+ type, setby);
}
int channel_mode_is_set(IRC_CHANNEL_REC *channel, char mode)