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
This commit is contained in:
Timo Sirainen 2000-08-20 07:17:13 +00:00 committed by cras
commit 67cc9af1bd
15 changed files with 351 additions and 232 deletions

View file

@ -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 {