summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authormauke <l.mai@web.de>2015-02-08 22:16:01 +0100
committermauke <l.mai@web.de>2015-02-08 22:16:01 +0100
commitb4b4ebfadfb580b76e2a2aee301ae7a61dde775e (patch)
tree78bd2e7b53090b147daa5664982d46c2427f035c /src/irc
parente2462b78399af7ce5339d97b0ae87aa280d608c6 (diff)
downloadirssi-b4b4ebfadfb580b76e2a2aee301ae7a61dde775e.zip
accept freenode extbans in /ban [#150]
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/bans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/core/bans.c b/src/irc/core/bans.c
index d8d5d448..38c81aab 100644
--- a/src/irc/core/bans.c
+++ b/src/irc/core/bans.c
@@ -88,7 +88,7 @@ char *ban_get_masks(IRC_CHANNEL_REC *channel, const char *nicks, int ban_type)
str = g_string_new(NULL);
banlist = g_strsplit(nicks, " ", -1);
for (ban = banlist; *ban != NULL; ban++) {
- if (strchr(*ban, '!') != NULL) {
+ if (**ban == '$' || strchr(*ban, '!') != NULL) {
/* explicit ban */
g_string_append_printf(str, "%s ", *ban);
continue;