… | |
… | |
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 | |
8 | static char const rcsid[] = "$Id: privs.C,v 1.4 2007/08/28 17:08:12 pippijn Exp $"; |
8 | static char const rcsid[] = "$Id: privs.C,v 1.5 2007/08/28 22:18:31 pippijn Exp $"; |
9 | |
9 | |
10 | #include "atheme.h" |
10 | #include "atheme.h" |
11 | #include <account/myuser.h> |
11 | #include <account/myuser.h> |
12 | #include "privs.h" |
12 | #include "privs.h" |
13 | |
13 | |
… | |
… | |
99 | |
99 | |
100 | soper_t * |
100 | soper_t * |
101 | soper_add (char *name, char *classname, int flags) |
101 | soper_add (char *name, char *classname, int flags) |
102 | { |
102 | { |
103 | soper_t *soper; |
103 | soper_t *soper; |
104 | myuser_t *mu = myuser_find (name); |
104 | myuser_t *mu = myuser_t::find (name); |
105 | node_t *n; |
105 | node_t *n; |
106 | operclass_t *operclass = operclass_find (classname); |
106 | operclass_t *operclass = operclass_find (classname); |
107 | |
107 | |
108 | soper = mu ? soper_find (mu) : soper_find_named (name); |
108 | soper = mu ? soper_find (mu) : soper_find_named (name); |
109 | if (soper != NULL) |
109 | if (soper != NULL) |