From 1af4eff6f6c76e359b8477f6f223133aefda4133 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 16 Sep 2016 14:02:41 -0500 Subject: [PATCH] channels: fix IsChannelName() to actually use IsChanPrefix(). --- include/channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/channel.h b/include/channel.h index ddbb951d..76a1b178 100644 --- a/include/channel.h +++ b/include/channel.h @@ -193,7 +193,7 @@ typedef int (*ExtbanFunc)(const char *data, struct Client *client_p, #define IsMember(who, chan) ((who && who->user && \ find_channel_membership(chan, who)) ? 1 : 0) -#define IsChannelName(name) ((name) && (*(name) == '#' || *(name) == '&')) +#define IsChannelName(name) ((name) && (IsChanPrefix(*(name)))) /* extban function results */ #define EXTBAN_INVALID -1 /* invalid mask, false even if negated */