1
0
mirror of https://github.com/irssi/irssi.git synced 2024-06-23 06:35:36 +00:00

"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
This commit is contained in:
Wouter Coekaerts 2005-01-03 18:54:39 +00:00 committed by coekie
parent 1074f0377e
commit 124e79aeeb
4 changed files with 5 additions and 5 deletions

View File

@ -147,7 +147,7 @@ massjoin.c:
mode-lists.c:
"ban new", CHANNEL_REC, BAN_REC
"ban remove", CHANNEL_REC, BAN_REC
"ban remove", CHANNEL_REC, BAN_REC, char *setby
modes.c:
"channel mode changed", CHANNEL_REC, char *setby

View File

@ -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);
}
}

View File

@ -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);

View File

@ -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);
}
}