diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-16 15:22:26 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-07-16 15:22:26 +0000 |
commit | 49b76108c272964598dc866c8728472ec1320f58 (patch) | |
tree | c0a817de852ec571d4e96122eb629f90e9c9e4ab /modules/core | |
parent | 4e68cbaf29277dc74e1641b7c2b513dd3129b21f (diff) |
- mr_nick(): remove legacy code for nicks cantaining '~'. valid_nickname()
already takes care of this.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2402 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/m_nick.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/core/m_nick.c b/modules/core/m_nick.c index e271494..e34f501 100644 --- a/modules/core/m_nick.c +++ b/modules/core/m_nick.c @@ -585,7 +585,6 @@ mr_nick(struct Client *client_p, struct Client *source_p, int parc, char *parv[]) { char nick[NICKLEN + 1] = { '\0' }; - char *s = NULL; struct Client *target_p = NULL; struct MaskItem *conf = NULL; @@ -596,10 +595,6 @@ mr_nick(struct Client *client_p, struct Client *source_p, return; } - /* Terminate the nick at the first ~ */ - if ((s = strchr(parv[1], '~')) != NULL) - *s = '\0'; - /* Copy the nick and terminate it */ strlcpy(nick, parv[1], IRCD_MIN(sizeof(nick), ServerInfo.max_nick_length + 1)); |