diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-22 09:47:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-22 09:47:13 +0000 |
commit | e47cab1ecc3c35cddef56e9980baf77fa32f3470 (patch) | |
tree | 06edea3a22f4ce1c2d097ff71cef7943a9c92415 /src/irc | |
parent | f4ba60bb437c25836ca07046da60b2b50796c24e (diff) | |
download | irssi-e47cab1ecc3c35cddef56e9980baf77fa32f3470.zip |
Added setby-parameter to "nick mode changed" and "channel mode changed"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2704 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/modes.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index 3f60dd9b..327a98aa 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -32,7 +32,7 @@ /* Change nick's mode in channel */ static void nick_mode_change(IRC_CHANNEL_REC *channel, const char *nick, - const char mode, int type) + const char mode, int type, const char *setby) { NICK_REC *nickrec; @@ -46,7 +46,7 @@ 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", 2, channel, nickrec); + signal_emit("nick mode changed", 3, channel, nickrec, setby); } static int mode_is_set(const char *str, char mode) @@ -236,13 +236,13 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby, case 'O': /* channel owner in !channels */ if (g_strcasecmp(channel->server->nick, arg) == 0) channel->chanop = type == '+'; - nick_mode_change(channel, arg, '@', type); + nick_mode_change(channel, arg, '@', type, setby); break; case 'h': - nick_mode_change(channel, arg, '%', type); + nick_mode_change(channel, arg, '%', type, setby); break; case 'v': - nick_mode_change(channel, arg, '+', type); + nick_mode_change(channel, arg, '+', type, setby); break; case 'l': @@ -290,7 +290,7 @@ void parse_channel_modes(IRC_CHANNEL_REC *channel, const char *setby, g_free(channel->mode); channel->mode = g_strdup(newmode->str); - signal_emit("channel mode changed", 1, channel); + signal_emit("channel mode changed", 2, channel, setby); } g_string_free(newmode, TRUE); |