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

Comparing ircd-hybrid-7.2/src/s_user.c (file contents):
Revision 1011 by michael, Fri Sep 18 10:14:09 2009 UTC vs.
Revision 1013 by michael, Sun Oct 18 14:26:49 2009 UTC

# Line 54 | Line 54
54   #include "msg.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 163 | 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 482 | 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    }
490  else assert(0);
492  
493    user_welcome(source_p);
494    add_user_host(source_p->username, source_p->host, 0);
# Line 1031 | 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;
1037  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)