]> jfr.im git - solanum.git/commitdiff
channels: fix IsChannelName() to actually use IsChanPrefix().
authorWilliam Pitcock <redacted>
Fri, 16 Sep 2016 19:02:41 +0000 (14:02 -0500)
committerWilliam Pitcock <redacted>
Fri, 16 Sep 2016 19:02:41 +0000 (14:02 -0500)
include/channel.h

index ddbb951dfb60b404795f39fcb7ce4de90f49320d..76a1b178778135f5aa3641f75626893cd39a46c6 100644 (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 */