| 23 |
|
*/ |
| 24 |
|
|
| 25 |
|
#include "stdinc.h" |
| 26 |
< |
#include "tools.h" |
| 26 |
> |
#include "list.h" |
| 27 |
|
#include "s_user.h" |
| 28 |
|
#include "s_misc.h" |
| 29 |
|
#include "channel.h" |
| 36 |
|
#include "sprintf_irc.h" |
| 37 |
|
#include "s_bsd.h" |
| 38 |
|
#include "ircd.h" |
| 39 |
– |
#include "list.h" |
| 39 |
|
#include "listener.h" |
| 40 |
|
#include "motd.h" |
| 41 |
|
#include "numeric.h" |
| 52 |
|
#include "hook.h" |
| 53 |
|
#include "s_misc.h" |
| 54 |
|
#include "msg.h" |
| 56 |
– |
#include "pcre.h" |
| 55 |
|
#include "watch.h" |
| 56 |
|
|
| 57 |
< |
int MaxClientCount = 1; |
| 58 |
< |
int MaxConnectionCount = 1; |
| 57 |
> |
unsigned int MaxClientCount = 1; |
| 58 |
> |
unsigned int MaxConnectionCount = 1; |
| 59 |
|
struct Callback *entering_umode_cb = NULL; |
| 60 |
|
struct Callback *umode_cb = NULL; |
| 61 |
|
struct Callback *uid_get_cb = NULL; |
| 163 |
|
unsigned int idx = 0; |
| 164 |
|
char *umode_buffer_ptr = umode_buffer; |
| 165 |
|
|
| 166 |
< |
for (; idx < (sizeof(user_modes) / sizeof(int)); ++idx) |
| 166 |
> |
for (; idx < (sizeof(user_modes) / sizeof(user_modes[0])); ++idx) |
| 167 |
|
if (user_modes[idx]) |
| 168 |
|
*umode_buffer_ptr++ = idx; |
| 169 |
|
|
| 482 |
|
|
| 483 |
|
source_p->localClient->allow_read = MAX_FLOOD_BURST; |
| 484 |
|
|
| 485 |
+ |
assert(dlinkFindDelete(&unknown_list, source_p)); |
| 486 |
+ |
|
| 487 |
|
if ((m = dlinkFindDelete(&unknown_list, source_p)) != NULL) |
| 488 |
|
{ |
| 489 |
|
free_dlink_node(m); |
| 490 |
|
dlinkAdd(source_p, &source_p->localClient->lclient_node, &local_client_list); |
| 491 |
|
} |
| 492 |
– |
else assert(0); |
| 492 |
|
|
| 493 |
|
user_welcome(source_p); |
| 494 |
|
add_user_host(source_p->username, source_p->host, 0); |
| 1032 |
|
send_umode(struct Client *client_p, struct Client *source_p, |
| 1033 |
|
unsigned int old, unsigned int sendmask, char *umode_buf) |
| 1034 |
|
{ |
| 1035 |
+ |
char *m = umode_buf; |
| 1036 |
|
int what = 0; |
| 1037 |
|
unsigned int i; |
| 1038 |
|
unsigned int flag; |
| 1039 |
– |
char *m = umode_buf; |
| 1039 |
|
|
| 1040 |
|
/* |
| 1041 |
|
* build a string in umode_buf to represent the change in the user's |