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

Comparing ermyth/src/privs.C (file contents):
Revision 1.4 by pippijn, Tue Aug 28 17:08:12 2007 UTC vs.
Revision 1.5 by pippijn, Tue Aug 28 22:18:31 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: privs.C,v 1.4 2007/08/28 17:08:12 pippijn Exp $"; 8static 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
100soper_t * 100soper_t *
101soper_add (char *name, char *classname, int flags) 101soper_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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines