1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-30 06:45:25 +00:00

"nick mode changed" now gives changed mode/type as parameters.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2972 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-10-26 18:52:45 +00:00 committed by cras
parent b05cfc62e0
commit f42df98fc8

View File

@ -35,6 +35,7 @@ static void nick_mode_change(IRC_CHANNEL_REC *channel, const char *nick,
const char mode, int type, const char *setby)
{
NICK_REC *nickrec;
char modestr[2], typestr[2];
g_return_if_fail(IS_IRC_CHANNEL(channel));
g_return_if_fail(nick != NULL);
@ -46,7 +47,10 @@ static void nick_mode_change(IRC_CHANNEL_REC *channel, const char *nick,
if (mode == '+') nickrec->voice = type == '+';
if (mode == '%') nickrec->halfop = type == '+';
signal_emit("nick mode changed", 3, channel, nickrec, setby);
modestr[0] = mode; modestr[1] = '\0';
typestr[0] = type; typestr[1] = '\0';
signal_emit("nick mode changed", 5,
channel, nickrec, setby, modestr, typestr);
}
static int mode_is_set(const char *str, char mode)