64 |
|
* used with init_isupport, add_isupport, delete_isupport |
65 |
|
*/ |
66 |
|
|
67 |
< |
struct Isupport |
67 |
> |
struct Isupport |
68 |
|
{ |
69 |
|
dlink_node node; |
70 |
|
char *name; |
109 |
|
0, /* X */ |
110 |
|
0, /* Y */ |
111 |
|
0, /* Z 0x5A */ |
112 |
< |
0, 0, 0, 0, 0, /* 0x5F */ |
112 |
> |
0, 0, 0, 0, 0, /* 0x5F */ |
113 |
|
0, /* 0x60 */ |
114 |
|
UMODE_ADMIN, /* a */ |
115 |
|
UMODE_BOTS, /* b */ |
169 |
|
* side effects - display to client user counts etc. |
170 |
|
*/ |
171 |
|
void |
172 |
< |
show_lusers(struct Client *source_p) |
172 |
> |
show_lusers(struct Client *source_p) |
173 |
|
{ |
174 |
|
const char *from, *to; |
175 |
|
|
215 |
|
{ |
216 |
|
sendto_one(source_p, form_str(RPL_LUSERME), |
217 |
|
from, to, Count.total, 0); |
218 |
< |
sendto_one(source_p, form_str(RPL_LOCALUSERS), |
218 |
> |
sendto_one(source_p, form_str(RPL_LOCALUSERS), |
219 |
|
from, to, Count.total, Count.max_tot); |
220 |
|
} |
221 |
|
|
230 |
|
Count.max_loc_cli = Count.local; |
231 |
|
|
232 |
|
if ((Count.local + Count.myserver) > Count.max_loc_con) |
233 |
< |
Count.max_loc_con = Count.local + Count.myserver; |
233 |
> |
Count.max_loc_con = Count.local + Count.myserver; |
234 |
|
} |
235 |
|
|
236 |
|
/* show_isupport() |
240 |
|
* side effects - display to client what we support (for them) |
241 |
|
*/ |
242 |
|
void |
243 |
< |
show_isupport(struct Client *source_p) |
243 |
> |
show_isupport(struct Client *source_p) |
244 |
|
{ |
245 |
|
const dlink_node *ptr = NULL; |
246 |
|
|
484 |
|
assert(source_p != NULL); |
485 |
|
assert(source_p->username != username); |
486 |
|
|
487 |
< |
strlcpy(source_p->host, host, sizeof(source_p->host)); |
487 |
> |
strlcpy(source_p->host, host, sizeof(source_p->host)); |
488 |
|
strlcpy(source_p->username, username, sizeof(source_p->username)); |
489 |
|
|
490 |
|
/* |
872 |
|
} |
873 |
|
else |
874 |
|
{ |
875 |
– |
/* Only decrement the oper counts if an oper to begin with |
876 |
– |
* found by Pat Szuta, Perly , perly@xnet.com |
877 |
– |
*/ |
875 |
|
if (!HasUMode(source_p, UMODE_OPER)) |
876 |
|
break; |
877 |
|
|
1155 |
|
} |
1156 |
|
#endif |
1157 |
|
|
1158 |
< |
sendto_one(source_p, form_str(RPL_WELCOME), me.name, source_p->name, |
1158 |
> |
sendto_one(source_p, form_str(RPL_WELCOME), me.name, source_p->name, |
1159 |
|
ServerInfo.network_name, source_p->name); |
1160 |
|
sendto_one(source_p, form_str(RPL_YOURHOST), me.name, source_p->name, |
1161 |
|
get_listener_name(source_p->localClient->listener), ircd_version); |
1214 |
|
* output - NONE |
1215 |
|
* side effects - Blindly opers up given source_p, using conf info |
1216 |
|
* all checks on passwords have already been done. |
1217 |
< |
* This could also be used by rsa oper routines. |
1217 |
> |
* This could also be used by rsa oper routines. |
1218 |
|
*/ |
1219 |
|
void |
1220 |
|
oper_up(struct Client *source_p) |
1266 |
|
|
1267 |
|
/* |
1268 |
|
* init_uid() |
1269 |
< |
* |
1269 |
> |
* |
1270 |
|
* inputs - NONE |
1271 |
|
* output - NONE |
1272 |
|
* side effects - new_uid is filled in with server id portion (sid) |
1284 |
|
strlcpy(new_uid, ServerInfo.sid, sizeof(new_uid)); |
1285 |
|
|
1286 |
|
for (i = 0; i < IRC_MAXSID; ++i) |
1287 |
< |
if (new_uid[i] == '\0') |
1287 |
> |
if (new_uid[i] == '\0') |
1288 |
|
new_uid[i] = 'A'; |
1289 |
|
|
1290 |
|
/* NOTE: if IRC_MAXUID != 6, this will have to be rewritten */ |