diff options
Diffstat (limited to 'src/irc/core/irc.h')
-rw-r--r-- | src/irc/core/irc.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/irc/core/irc.h b/src/irc/core/irc.h index 5c549157..baa692df 100644 --- a/src/irc/core/irc.h +++ b/src/irc/core/irc.h @@ -12,9 +12,19 @@ = i line with OTHER type ident - i line, no ident */ -#define ishostflag(a) ((a) == '^' || (a) == '~' || (a) == '+' || (a) == '=' || (a) == '-') -#define isnickflag(a) ((a) == '@' || (a) == '+' || (a) == '-' || (a) == '~') -#define ischannel(a) ((a) == '#' || (a) == '&' || (a) == '!' || (a) == '+') +#define ishostflag(a) \ + ((a) == '^' || (a) == '~' || \ + (a) == '+' || (a) == '=' || (a) == '-') + +#define isnickflag(a) \ + ((a) == '@' || (a) == '+' || (a) == '%' || /* op / voice / half-op */ \ + (a) == '-' || (a) == '~') /* no idea, just copied from somewhere.. */ + +#define ischannel(a) \ + ((a) == '#' || /* normal */ \ + (a) == '&' || /* local */ \ + (a) == '!' || /* secure */ \ + (a) == '+') /* modeless */ /* values returned by module_category() */ enum { |