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/trunk/src/user.c (file contents):
Revision 3504 by michael, Sat May 10 19:51:29 2014 UTC vs.
Revision 3569 by michael, Fri May 16 14:59:21 2014 UTC

# Line 117 | Line 117 | const unsigned int user_modes[256] =
117    0,                  /* m */
118    UMODE_NCHANGE,      /* n */
119    UMODE_OPER,         /* o */
120 <  0,                  /* p */
121 <  0,                  /* q */
120 >  UMODE_HIDECHANS,    /* p */
121 >  UMODE_HIDEIDLE,     /* q */
122    UMODE_REGISTERED,   /* r */
123    UMODE_SERVNOTICE,   /* s */
124    0,                  /* t */
# Line 485 | Line 485 | register_local_user(struct Client *sourc
485    /* Password check */
486    if (!EmptyString(conf->passwd))
487    {
488 <    const char *pass = source_p->localClient->passwd;
489 <
490 <    if (!match_conf_password(pass, conf))
488 >    if (!match_conf_password(source_p->localClient->passwd, conf))
489      {
490        ++ServerStats.is_ref;
491  
# Line 584 | Line 582 | register_local_user(struct Client *sourc
582    SetClient(source_p);
583    dlinkAdd(source_p, &source_p->lnode, &source_p->servptr->serv->client_list);
584  
587  source_p->localClient->allow_read = MAX_FLOOD_BURST;
588
585    assert(dlinkFind(&unknown_list, source_p));
586  
587    dlink_move_node(&source_p->localClient->lclient_node,
# Line 1054 | Line 1050 | init_uid(void)
1050   *                note this is a recursive function
1051   */
1052   static void
1053 < add_one_to_uid(int i)
1053 > add_one_to_uid(unsigned int i)
1054   {
1055    if (i != IRC_MAXSID)  /* Not reached server SID portion yet? */
1056    {
# Line 1063 | Line 1059 | add_one_to_uid(int i)
1059      else if (new_uid[i] == '9')
1060      {
1061        new_uid[i] = 'A';
1062 <      add_one_to_uid(i-1);
1062 >      add_one_to_uid(i - 1);
1063      }
1064      else
1065        ++new_uid[i];

Diff Legend

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