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 3655 by michael, Wed May 28 20:51:21 2014 UTC vs.
Revision 3896 by michael, Fri Jun 6 19:08:47 2014 UTC

# Line 127 | Line 127 | const unsigned int user_modes[256] =
127    UMODE_WALLOP,       /* w */
128    UMODE_HIDDENHOST,   /* x */
129    UMODE_SPY,          /* y */
130 <  UMODE_OPERWALL,     /* z      0x7A */
130 >  0,                  /* z      0x7A */
131    0,0,0,0,0,          /* 0x7B - 0x7F */
132  
133    /* 0x80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 0x8F */
# Line 722 | Line 722 | valid_hostname(const char *hostname)
722   int
723   valid_username(const char *username, const int local)
724   {
725 <  int dots      = 0;
725 >  unsigned int dots = 0;
726    const char *p = username;
727  
728    assert(p);
# Line 760 | Line 760 | valid_username(const char *username, con
760          return 0;
761    }
762  
763 <  return p - username <= USERLEN;;
763 >  return p - username <= USERLEN;
764   }
765  
766   /* clean_nick_name()
# Line 1103 | Line 1103 | init_isupport(void)
1103    add_isupport("DEAF", "D", -1);
1104    add_isupport("KICKLEN", NULL, KICKLEN);
1105    add_isupport("MODES", NULL, MAXMODEPARAMS);
1106 #ifdef HALFOPS
1106    add_isupport("PREFIX", "(ohv)@%+", -1);
1107    add_isupport("STATUSMSG", "@%+", -1);
1109 #else
1110  add_isupport("PREFIX", "(ov)@+", -1);
1111  add_isupport("STATUSMSG", "@+", -1);
1112 #endif
1108    add_isupport("EXCEPTS", "e", -1);
1109    add_isupport("INVEX", "I", -1);
1110   }
# Line 1127 | Line 1122 | void
1122   add_isupport(const char *name, const char *options, int n)
1123   {
1124    dlink_node *ptr;
1125 <  struct Isupport *support;
1125 >  struct Isupport *support = NULL;
1126  
1127    DLINK_FOREACH(ptr, support_list.head)
1128    {

Diff Legend

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