| 39 |
|
#include "memory.h" |
| 40 |
|
#include "user.h" |
| 41 |
|
#include "server.h" |
| 42 |
+ |
#include "packet.h" |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
/* |
| 177 |
|
else |
| 178 |
|
target_p = find_person(source_p, parv[1]); |
| 179 |
|
|
| 180 |
< |
if ((!target_p || target_p->from == source_p->from) && !chptr) |
| 180 |
> |
if ((target_p == NULL || target_p->from == source_p->from) && chptr == NULL) |
| 181 |
|
return; |
| 182 |
|
|
| 183 |
|
/* |
| 222 |
|
{ |
| 223 |
|
if (IsServer(source_p->from)) |
| 224 |
|
++message->rcount; |
| 224 |
– |
|
| 225 |
|
++message->count; |
| 226 |
|
|
| 227 |
+ |
if (MyClient(source_p) && (message->flags & MFLG_ENDGRACE)) |
| 228 |
+ |
flood_endgrace(source_p); |
| 229 |
+ |
|
| 230 |
|
/* Check right amount of parameters is passed... --is */ |
| 231 |
|
if (i < message->args_min) |
| 232 |
|
sendto_one_numeric(source_p, &me, ERR_NEEDMOREPARAMS, message->cmd); |
| 396 |
|
if (paramcount > MAXPARA) |
| 397 |
|
paramcount = MAXPARA; |
| 398 |
|
|
| 399 |
< |
while (1) |
| 399 |
> |
while (true) |
| 400 |
|
{ |
| 401 |
|
while (*s == ' ') |
| 402 |
|
*s++ = '\0'; |
| 407 |
|
if (*s == ':') |
| 408 |
|
{ |
| 409 |
|
/* The rest is single parameter--can include blanks also. */ |
| 410 |
< |
para[++parc] = s + (!numeric); /* Keep the colon if it's a numeric */ |
| 410 |
> |
para[++parc] = s + (numeric == 0); /* Keep the colon if it's a numeric */ |
| 411 |
|
break; |
| 412 |
|
} |
| 413 |
|
|
| 568 |
|
assert(msg->cmd); |
| 569 |
|
|
| 570 |
|
/* Command already added? */ |
| 571 |
< |
if (msg_tree_parse(msg->cmd)) |
| 572 |
< |
return; |
| 570 |
< |
|
| 571 |
< |
add_msg_element(&msg_tree, msg, msg->cmd); |
| 571 |
> |
if (msg_tree_parse(msg->cmd) == NULL) |
| 572 |
> |
add_msg_element(&msg_tree, msg, msg->cmd); |
| 573 |
|
} |
| 574 |
|
|
| 575 |
|
/* mod_del_cmd() |
| 584 |
|
assert(msg); |
| 585 |
|
assert(msg->cmd); |
| 586 |
|
|
| 587 |
< |
if (!msg_tree_parse(msg->cmd)) |
| 588 |
< |
return; |
| 588 |
< |
|
| 589 |
< |
del_msg_element(&msg_tree, msg->cmd); |
| 587 |
> |
if (msg_tree_parse(msg->cmd)) |
| 588 |
> |
del_msg_element(&msg_tree, msg->cmd); |
| 589 |
|
} |
| 590 |
|
|
| 591 |
|
/* find_command() |