ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/channel_mode.h
(Generate patch)

Comparing ircd-hybrid/trunk/include/channel_mode.h (file contents):
Revision 2865 by michael, Sun Jan 19 14:35:22 2014 UTC vs.
Revision 2896 by michael, Tue Jan 21 20:05:40 2014 UTC

# Line 27 | Line 27
27   #ifndef INCLUDED_channel_mode_h
28   #define INCLUDED_channel_mode_h
29  
30 #include "ircd_defs.h"        /* buffer sizes */
31
30   #define MODEBUFLEN    200
31  
32   /* Maximum mode changes allowed per client, per server is different */
33   #define MAXMODEPARAMS 4
34  
35 + enum
36 + {
37 +  MODE_QUERY =  0,
38 +  MODE_ADD   =  1,
39 +  MODE_DEL   = -1
40 + };
41 +
42 + enum
43 + {
44 +  CHACCESS_NOTONCHAN = -1,
45 +  CHACCESS_PEON      =  0,
46 +  CHACCESS_HALFOP    =  1,
47 +  CHACCESS_CHANOP    =  2
48 + };
49 +
50   /* can_send results */
51 < #define CAN_SEND_NO     0
52 < #define CAN_SEND_NONOP  -1
53 < #define CAN_SEND_OPV    -2
51 > enum
52 > {
53 >  CAN_SEND_NO    =  0,
54 >  CAN_SEND_NONOP = -1,
55 >  CAN_SEND_OPV   = -2
56 > };
57  
58  
59   /* Channel related flags */
# Line 67 | Line 83
83   #define CHFL_BAN_CHECKED  0x0080
84   #define CHFL_BAN_SILENCED 0x0100
85  
70 #define MODE_QUERY  0
71 #define MODE_ADD    1
72 #define MODE_DEL   -1
73
74 #define CHACCESS_NOTONCHAN  -1
75 #define CHACCESS_PEON       0
76 #define CHACCESS_HALFOP     1
77 #define CHACCESS_CHANOP     2
78
86   /* name invisible */
87   #define SecretChannel(x)        (((x)->mode.mode & MODE_SECRET))
88   #define PubChannel(x)           (!SecretChannel(x))

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)