… | |
… | |
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 | |
8 | static char const rcsid[] = "$Id: servtree.C,v 1.5 2007/08/30 19:56:26 pippijn Exp $"; |
8 | static 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 | |
13 | service_map services; |
13 | service_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)) |