summaryrefslogtreecommitdiff
path: root/src/irc/core/irc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/irc.h')
-rw-r--r--src/irc/core/irc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/irc/core/irc.h b/src/irc/core/irc.h
index 12065cb1..7eacca7a 100644
--- a/src/irc/core/irc.h
+++ b/src/irc/core/irc.h
@@ -25,6 +25,10 @@
(a) == '!' || /* secure */ \
(a) == '+') /* modeless */
+#define ischannel_target(a) \
+ (ischannel((a)[0]) || \
+ ((a)[0] == '@' && ischannel((a)[1]))) /* hybrid6 @#channel */
+
#define IS_IRC_ITEM(rec) (IS_IRC_CHANNEL(rec) || IS_IRC_QUERY(rec))
extern char *current_server_event; /* current server event being processed */