summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorGeert Hauwaerts <geert@irssi.org>2007-04-09 14:55:42 +0000
committerGeert <Geert@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-04-09 14:55:42 +0000
commit9898328865b75d4dde9f2a5ff60cfab473c415eb (patch)
tree43e818b953cb2703f9bc03a013bbfddd0e24f554 /src/irc
parent3ae155f100df2b979f40e9b0c19c9dbf9530ac9f (diff)
downloadirssi-9898328865b75d4dde9f2a5ff60cfab473c415eb.zip
Local opers on IRCnet (umode +O) get the server->server_operator flag.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4442 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index e30e7447..44cd1649 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -409,7 +409,7 @@ static void parse_user_mode(IRC_SERVER_REC *server, const char *modestr)
newmode = modes_join(NULL, server->usermode, modestr, FALSE);
oldmode = server->usermode;
server->usermode = newmode;
- server->server_operator = (strchr(newmode, 'o') != NULL);
+ server->server_operator = ((strchr(newmode, 'o') != NULL) || (strchr(newmode, 'O') != NULL));
signal_emit("user mode changed", 2, server, oldmode);
g_free_not_null(oldmode);