diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-01-03 18:54:39 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-01-03 18:54:39 +0000 |
commit | 124e79aeeb0966d6b7d710762922f3612e6ef1e8 (patch) | |
tree | c04dc696486e117410d4d02486e0ab0c8f360abd /src/irc | |
parent | 1074f0377ed8c89bb81e0b0fa6c84c6075a6f663 (diff) | |
download | irssi-124e79aeeb0966d6b7d710762922f3612e6ef1e8.zip |
"ban remove" signal should pass who removed it, patch by Timothy Hatcher (Bug 166)
added it to docs/signals.txt too
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3696 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/mode-lists.c | 4 | ||||
-rw-r--r-- | src/irc/core/mode-lists.h | 2 | ||||
-rw-r--r-- | src/irc/core/modes.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/irc/core/mode-lists.c b/src/irc/core/mode-lists.c index ee60f1b2..a275d49f 100644 --- a/src/irc/core/mode-lists.c +++ b/src/irc/core/mode-lists.c @@ -88,7 +88,7 @@ BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban, return rec; } -void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban) +void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban, const char *nick) { BAN_REC *rec; @@ -97,7 +97,7 @@ void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban) rec = banlist_find(channel->banlist, ban); if (rec != NULL) { - signal_emit("ban remove", 2, channel, rec); + signal_emit("ban remove", 3, channel, rec, nick); ban_free(&channel->banlist, rec); } } diff --git a/src/irc/core/mode-lists.h b/src/irc/core/mode-lists.h index 105e1245..cd3bc0bf 100644 --- a/src/irc/core/mode-lists.h +++ b/src/irc/core/mode-lists.h @@ -10,7 +10,7 @@ typedef struct { BAN_REC *banlist_find(GSList *list, const char *ban); BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban, const char *nick, time_t time); -void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban); +void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban, const char *nick); BAN_REC *banlist_exception_add(IRC_CHANNEL_REC *channel, const char *ban, const char *nick, time_t time); void banlist_exception_remove(IRC_CHANNEL_REC *channel, const char *ban); diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index e7a8e63b..cac897ec 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -207,7 +207,7 @@ void modes_type_a(IRC_CHANNEL_REC *channel, const char *setby, char type, if (type == '+') banlist_add(channel, arg, setby, time(NULL)); else - banlist_remove(channel, arg); + banlist_remove(channel, arg, setby); } } |