/[svn]/ircd-hybrid/trunk/modules/core/m_nick.c
ViewVC logotype

Diff of /ircd-hybrid/trunk/modules/core/m_nick.c

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

revision 2402 by michael, Thu Jul 4 22:42:24 2013 UTC revision 2403 by michael, Tue Jul 16 15:22:41 2013 UTC
# Line 585  mr_nick(struct Client *client_p, struct Line 585  mr_nick(struct Client *client_p, struct
585          int parc, char *parv[])          int parc, char *parv[])
586  {  {
587    char nick[NICKLEN + 1] = { '\0' };    char nick[NICKLEN + 1] = { '\0' };
   char *s = NULL;  
588    struct Client *target_p = NULL;    struct Client *target_p = NULL;
589    struct MaskItem *conf = NULL;    struct MaskItem *conf = NULL;
590    
# Line 596  mr_nick(struct Client *client_p, struct Line 595  mr_nick(struct Client *client_p, struct
595      return;      return;
596    }    }
597    
   /* Terminate the nick at the first ~ */  
   if ((s = strchr(parv[1], '~')) != NULL)  
     *s = '\0';  
   
598    /* Copy the nick and terminate it */    /* Copy the nick and terminate it */
599    strlcpy(nick, parv[1], IRCD_MIN(sizeof(nick), ServerInfo.max_nick_length + 1));    strlcpy(nick, parv[1], IRCD_MIN(sizeof(nick), ServerInfo.max_nick_length + 1));
600    

Legend:
Removed from v.2402  
changed lines
  Added in v.2403

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