1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

accept freenode extbans in /ban [#150]

This commit is contained in:
mauke 2015-02-08 22:16:01 +01:00
parent e2462b7839
commit b4b4ebfadf

View File

@ -88,7 +88,7 @@ char *ban_get_masks(IRC_CHANNEL_REC *channel, const char *nicks, int ban_type)
str = g_string_new(NULL); str = g_string_new(NULL);
banlist = g_strsplit(nicks, " ", -1); banlist = g_strsplit(nicks, " ", -1);
for (ban = banlist; *ban != NULL; ban++) { for (ban = banlist; *ban != NULL; ban++) {
if (strchr(*ban, '!') != NULL) { if (**ban == '$' || strchr(*ban, '!') != NULL) {
/* explicit ban */ /* explicit ban */
g_string_append_printf(str, "%s ", *ban); g_string_append_printf(str, "%s ", *ban);
continue; continue;