channels: fix IsChannelName() to actually use IsChanPrefix().

This commit is contained in:
William Pitcock 2016-09-16 14:02:41 -05:00
parent 6e86cdd6d6
commit 1af4eff6f6

View file

@ -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 */