2386 |
|
* "oper" is server name for remote opers |
2387 |
|
* Side effects: None. |
2388 |
|
*/ |
2389 |
< |
char * |
2389 |
> |
const char * |
2390 |
|
get_oper_name(const struct Client *client_p) |
2391 |
|
{ |
2392 |
< |
dlink_node *cnode; |
2393 |
< |
struct ConfItem *conf; |
2394 |
< |
struct AccessItem *aconf; |
2395 |
< |
|
2392 |
> |
dlink_node *cnode = NULL; |
2393 |
|
/* +5 for !,@,{,} and null */ |
2394 |
|
static char buffer[NICKLEN + USERLEN + HOSTLEN + HOSTLEN + 5]; |
2395 |
|
|
2396 |
|
if (MyConnect(client_p)) |
2397 |
|
{ |
2398 |
< |
DLINK_FOREACH(cnode, client_p->localClient->confs.head) |
2398 |
> |
if ((cnode = client_p->localClient->confs.head)) |
2399 |
|
{ |
2400 |
< |
conf = cnode->data; |
2401 |
< |
aconf = map_to_conf(conf); |
2400 |
> |
struct ConfItem *conf = cnode->data; |
2401 |
> |
const struct AccessItem *aconf = map_to_conf(conf); |
2402 |
|
|
2403 |
|
if (IsConfOperator(aconf)) |
2404 |
|
{ |