summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-26 18:52:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-26 18:52:45 +0000
commitf42df98fc89144746d596e6169ede6784dd62c42 (patch)
treeed4b83b57bef94652512bde9d5e31d5fb4b912df /src
parentb05cfc62e0d014826219ad53bb0465d632061ff7 (diff)
downloadirssi-f42df98fc89144746d596e6169ede6784dd62c42.zip
"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
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/modes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index 7048cdb1..acada2bc 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -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)