ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/src/flags.C
(Generate patch)

Comparing ermyth/src/flags.C (file contents):
Revision 1.4 by pippijn, Tue Aug 28 17:08:12 2007 UTC vs.
Revision 1.5 by pippijn, Thu Aug 30 19:56:24 2007 UTC

3 * Rights to this code are documented in doc/pod/license.pod. 3 * Rights to this code are documented in doc/pod/license.pod.
4 * 4 *
5 * Copyright © 2005-2007 Atheme Project (http://www.atheme.org) 5 * Copyright © 2005-2007 Atheme Project (http://www.atheme.org)
6 */ 6 */
7 7
8static char const rcsid[] = "$Id: flags.C,v 1.4 2007/08/28 17:08:12 pippijn Exp $"; 8static char const rcsid[] = "$Id: flags.C,v 1.5 2007/08/30 19:56:24 pippijn Exp $";
9 9
10#include "atheme.h" 10#include "atheme.h"
11#include <account/chanacs.h> 11#include <account/chanacs.h>
12 12
13#define FLAGS_ADD 0x1 13#define FLAGS_ADD 0x1
15 15
16unsigned int ca_all = CA_ALL_ALL; 16unsigned int ca_all = CA_ALL_ALL;
17 17
18static char flags_buf[128]; 18static char flags_buf[128];
19 19
20struct flags_table chanacs_flags[] = { 20flags_table chanacs_flags[] = {
21 {'v', CA_VOICE}, 21 { 'v', CA_VOICE },
22 {'V', CA_AUTOVOICE}, 22 { 'V', CA_AUTOVOICE },
23 {'o', CA_OP}, 23 { 'o', CA_OP },
24 {'O', CA_AUTOOP}, 24 { 'O', CA_AUTOOP },
25 {'t', CA_TOPIC}, 25 { 't', CA_TOPIC },
26 {'s', CA_SET}, 26 { 's', CA_SET },
27 {'r', CA_REMOVE}, 27 { 'r', CA_REMOVE },
28 {'i', CA_INVITE}, 28 { 'i', CA_INVITE },
29 {'R', CA_RECOVER}, 29 { 'R', CA_RECOVER },
30 {'f', CA_FLAGS}, 30 { 'f', CA_FLAGS },
31 {'h', CA_HALFOP}, 31 { 'h', CA_HALFOP },
32 {'H', CA_AUTOHALFOP}, 32 { 'H', CA_AUTOHALFOP },
33 {'A', CA_ACLVIEW}, 33 { 'A', CA_ACLVIEW },
34 {'F', CA_FOUNDER}, 34 { 'F', CA_FOUNDER },
35 {'b', CA_AKICK}, 35 { 'b', CA_AKICK },
36 {0, 0} 36 { 0, 0 }
37}; 37};
38 38
39/* Construct bitmasks to be added and removed 39/* Construct bitmasks to be added and removed
40 * Postcondition *addflags & *removeflags == 0 40 * Postcondition *addflags & *removeflags == 0
41 * -- jilles */ 41 * -- jilles */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines