mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
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
This commit is contained in:
parent
3ae155f100
commit
9898328865
@ -409,7 +409,7 @@ static void parse_user_mode(IRC_SERVER_REC *server, const char *modestr)
|
|||||||
newmode = modes_join(NULL, server->usermode, modestr, FALSE);
|
newmode = modes_join(NULL, server->usermode, modestr, FALSE);
|
||||||
oldmode = server->usermode;
|
oldmode = server->usermode;
|
||||||
server->usermode = newmode;
|
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);
|
signal_emit("user mode changed", 2, server, oldmode);
|
||||||
g_free_not_null(oldmode);
|
g_free_not_null(oldmode);
|
||||||
|
Loading…
Reference in New Issue
Block a user