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

Comparing cvsroot/ermyth/src/servtree.C (file contents):
Revision 1.5 by pippijn, Thu Aug 30 19:56:26 2007 UTC vs.
Revision 1.6 by pippijn, Tue Sep 4 11:13:26 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 * Services binary tree manipulation. (add_service, del_service, et al.) 5 * Services binary tree manipulation. (add_service, del_service, et al.)
6 */ 6 */
7 7
8static char const rcsid[] = "$Id: servtree.C,v 1.5 2007/08/30 19:56:26 pippijn Exp $"; 8static char const rcsid[] = "$Id: servtree.C,v 1.6 2007/09/04 11:13:26 pippijn Exp $";
9 9
10#include "atheme.h" 10#include "atheme.h"
11#include <boost/foreach.hpp> 11#include <boost/foreach.hpp>
12 12
13service_map services; 13service_map services;
126 service_map::iterator sit; 126 service_map::iterator sit;
127 user_t *u; 127 user_t *u;
128 char *p; 128 char *p;
129 char name2[NICKLEN]; 129 char name2[NICKLEN];
130 130
131 if (name[0] == '#')
132 return fcmd_agent;
133
134 p = strchr (name, '@'); 131 p = strchr (name, '@');
135 if (p != NULL) 132 if (p != NULL)
136 { 133 {
137 /* Make sure it's for us, not for a jupe -- jilles */ 134 /* Make sure it's for us, not for a jupe -- jilles */
138 if (irccasecmp (p + 1, me.name)) 135 if (irccasecmp (p + 1, me.name))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines