From 0a9a05c5c0e26980bdb8d0b534fb6252c9122abd Mon Sep 17 00:00:00 2001 From: Wouter Coekaerts Date: Sat, 12 May 2007 13:19:35 +0000 Subject: [PATCH] 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 --- src/irc/core/modes.c | 5 +++-- 1 file 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)