ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/user.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_user.c (file contents):
Revision 983 by michael, Thu Aug 13 22:32:54 2009 UTC vs.
Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC

# Line 23 | Line 23
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"
# Line 36 | Line 36
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"
# Line 53 | Line 52
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;
# Line 165 | Line 163 | assemble_umode_buffer(void)
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  
# Line 484 | Line 482 | register_local_user(struct Client *clien
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);
# Line 1033 | Line 1032 | void
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

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)