mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
"ban ..." signals didn't send channel info
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1457 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a321ad0150
commit
53474a2163
@ -142,10 +142,10 @@ massjoin.c:
|
|||||||
"massjoin", CHANNEL_REC, GSList of NICK_RECs
|
"massjoin", CHANNEL_REC, GSList of NICK_RECs
|
||||||
|
|
||||||
mode-lists.c:
|
mode-lists.c:
|
||||||
"ban new", BAN_REC
|
"ban new", CHANNEL_REC, BAN_REC
|
||||||
"ban remove", BAN_REC
|
"ban remove", CHANNEL_REC, BAN_REC
|
||||||
"ban exception new", BAN_REC
|
"ban exception new", CHANNEL_REC, BAN_REC
|
||||||
"ban exception remove", BAN_REC
|
"ban exception remove", CHANNEL_REC, BAN_REC
|
||||||
"invitelist new", CHANNEL_REC, char *mask
|
"invitelist new", CHANNEL_REC, char *mask
|
||||||
"invitelist remove", CHANNEL_REC, char *mask
|
"invitelist remove", CHANNEL_REC, char *mask
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ BAN_REC *banlist_add(IRC_CHANNEL_REC *channel, const char *ban,
|
|||||||
|
|
||||||
channel->banlist = g_slist_append(channel->banlist, rec);
|
channel->banlist = g_slist_append(channel->banlist, rec);
|
||||||
|
|
||||||
signal_emit("ban new", 1, rec);
|
signal_emit("ban new", 2, channel, rec);
|
||||||
return rec;
|
return rec;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ void banlist_remove(IRC_CHANNEL_REC *channel, const char *ban)
|
|||||||
|
|
||||||
rec = banlist_find(channel->banlist, ban);
|
rec = banlist_find(channel->banlist, ban);
|
||||||
if (rec != NULL) {
|
if (rec != NULL) {
|
||||||
signal_emit("ban remove", 1, rec);
|
signal_emit("ban remove", 2, channel, rec);
|
||||||
ban_free(&channel->banlist, 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);
|
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;
|
return rec;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ void banlist_exception_remove(IRC_CHANNEL_REC *channel, const char *ban)
|
|||||||
|
|
||||||
rec = banlist_find(channel->ebanlist, ban);
|
rec = banlist_find(channel->ebanlist, ban);
|
||||||
if (rec != NULL) {
|
if (rec != NULL) {
|
||||||
signal_emit("ban exception remove", 1, rec);
|
signal_emit("ban exception remove", 2, channel, rec);
|
||||||
ban_free(&channel->ebanlist, rec);
|
ban_free(&channel->ebanlist, rec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user