1202 |
|
void |
1203 |
|
oper_up(struct Client *source_p) |
1204 |
|
{ |
1205 |
< |
unsigned int old = source_p->umodes; |
1206 |
< |
const char *operprivs = ""; |
1205 |
> |
const unsigned int old = source_p->umodes; |
1206 |
|
const struct AccessItem *oconf = NULL; |
1207 |
|
|
1208 |
|
assert(source_p->localClient->confs.head); |
1224 |
|
assert(dlinkFind(&oper_list, source_p) == NULL); |
1225 |
|
dlinkAdd(source_p, make_dlink_node(), &oper_list); |
1226 |
|
|
1228 |
– |
operprivs = oper_privs_as_string(oconf->port); |
1229 |
– |
|
1227 |
|
AddOFlag(source_p, oconf->port); |
1228 |
|
|
1229 |
|
if (HasOFlag(source_p, OPER_FLAG_ADMIN)) |
1235 |
|
get_oper_name(source_p)); |
1236 |
|
send_umode_out(source_p, source_p, old); |
1237 |
|
sendto_one(source_p, form_str(RPL_YOUREOPER), me.name, source_p->name); |
1241 |
– |
sendto_one(source_p, ":%s NOTICE %s :*** Oper privs are %s", |
1242 |
– |
me.name, source_p->name, operprivs); |
1238 |
|
} |
1239 |
|
|
1240 |
|
static char new_uid[TOTALSIDUID + 1]; /* allow for \0 */ |