mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
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:
parent
7cbd164e75
commit
67cc9af1bd
15 changed files with 351 additions and 232 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue