ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/modules/core/m_nick.c
(Generate patch)

Comparing ircd-hybrid-8/modules/core/m_nick.c (file contents):
Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC vs.
Revision 1158 by michael, Wed Aug 10 19:46:00 2011 UTC

# Line 621 | Line 621 | nick_from_server(struct Client *client_p
621  
622      strlcpy(source_p->info, parv[8], sizeof(source_p->info));
623      /* copy the nick in place */
624 <    strcpy(source_p->name, nick);
624 >    strlcpy(source_p->name, nick, sizeof(source_p->name));
625      hash_add_client(source_p);
626  
627      if (parc > 8)
# Line 653 | Line 653 | nick_from_server(struct Client *client_p
653      /* client changing their nick */
654      if (!samenick)
655      {
656 +      DelUMode(source_p, UMODE_REGISTERED);
657        watch_check_hash(source_p, RPL_LOGOFF);
658        source_p->tsinfo = newts ? newts : CurrentTime;
659      }
# Line 674 | Line 675 | nick_from_server(struct Client *client_p
675    if (source_p->name[0])
676      hash_del_client(source_p);
677  
678 <  strcpy(source_p->name, nick);
678 >  strlcpy(source_p->name, nick, sizeof(source_p->name));
679    hash_add_client(source_p);
680  
681    if (!samenick)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines