diff options
-rw-r--r-- | docs/signals.txt | 8 | ||||
-rw-r--r-- | src/irc/core/mode-lists.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/docs/signals.txt b/docs/signals.txt index 51aa4792..12630a5e 100644 --- a/docs/signals.txt +++ b/docs/signals.txt @@ -142,10 +142,10 @@ massjoin.c: "massjoin", CHANNEL_REC, GSList of NICK_RECs mode-lists.c: - "ban new", BAN_REC - "ban remove", BAN_REC - "ban exception new", BAN_REC - "ban exception remove", BAN_REC + "ban new", CHANNEL_REC, BAN_REC + "ban remove", CHANNEL_REC, BAN_REC + "ban exception new", CHANNEL_REC, BAN_REC + "ban exception remove", CHANNEL_REC, BAN_REC "invitelist new", CHANNEL_REC, char *mask "invitelist remove", CHANNEL_REC, char *mask diff --git a/src/irc/core/mode-lists.c b/src/irc/core/mode-lists.c index 50d57b3a..b3c3e248 100644 --- a/src/irc/core/mode-lists.c +++ b/src/irc/core/mode-lists.c @@ -59,7 +59,7 @@ BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban, channel->banlist = g_slist_append(channel->banlist, rec); - signal_emit("ban new", 1, rec); + signal_emit("ban new", 2, channel, rec); return rec; } @@ -88,7 +88,7 @@ void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban) rec = banlist_find(channel->banlist, ban); if (rec != NULL) { - signal_emit("ban remove", 1, rec); + signal_emit("ban remove", 2, channel, rec); ban_free(&channel->banlist, rec); } } @@ -109,7 +109,7 @@ BAN_REC *banlist_exception_add(IRC_CHANNEL_REC *channel, const char *ban, channel->ebanlist = g_slist_append(channel->ebanlist, rec); - signal_emit("ban exception new", 1, rec); + signal_emit("ban exception new", 2, channel, rec); return rec; } @@ -122,7 +122,7 @@ void banlist_exception_remove(IRC_CHANNEL_REC *channel, const char *ban) rec = banlist_find(channel->ebanlist, ban); if (rec != NULL) { - signal_emit("ban exception remove", 1, rec); + signal_emit("ban exception remove", 2, channel, rec); ban_free(&channel->ebanlist, rec); } } |