diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-20 07:17:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-20 07:17:13 +0000 |
commit | 67cc9af1bd825268e0bf12dca262bdbf64e56d29 (patch) | |
tree | f1baf82253e80d7c95e799f0f528c10b321d5a8c /src/irc/core/irc.h | |
parent | 7cbd164e759449450f38fac0d087960c3b5355b8 (diff) | |
download | irssi-67cc9af1bd825268e0bf12dca262bdbf64e56d29.zip |
Channel mode handling changed - there's no more mode_xxx fields in
channel structure, but instead just one mode string field. Also
handling half-ops (+h) should work right.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@617 dbcabf3a-b0e7-0310-adc4-f8d773084564
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 { |