/[svn]/ircd-hybrid/branches/8.2.x/src/user.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/user.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9875 by michael, Sun Jan 3 13:58:10 2021 UTC revision 9876 by michael, Sat Jan 9 14:19:29 2021 UTC
# Line 542  valid_username(const char *username, boo Line 542  valid_username(const char *username, boo
542    {    {
543      unsigned int dots = 0;      unsigned int dots = 0;
544    
545      while (*++p)      while (*p)
546      {      {
547        if (*p == '.' && ConfigGeneral.dots_in_ident)        if (*p == '.' && ConfigGeneral.dots_in_ident)
548        {        {
549          if (++dots > ConfigGeneral.dots_in_ident)          if (++dots > ConfigGeneral.dots_in_ident)
550            return false;            return false;
551          if (!IsUserChar(*(p + 1)))          if (!IsUser2Char(*(p + 1)))
552            return false;            return false;
553        }        }
554        else if (!IsUserChar(*p))        else if (!IsUser2Char(*p))
555          return false;          return false;
556      }      }
557    }    }

Legend:
Removed from v.9875  
changed lines
  Added in v.9876

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28