summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-20 09:41:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-20 09:41:52 +0000
commit53aaf31285c1168b1d0d1aca5e67b6323b0d0910 (patch)
tree704e55c46c87013907a768f1724064e59c2b0801 /src/cmd_nick.cpp
parent55d0f56eaa0b8dc713b0188a5019493378126dac (diff)
Allow case changes in nick w00t -> w00T
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2582 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index 8240e5805..f35a8fd8c 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -90,9 +90,12 @@ void cmd_nick::Handle (char **parameters, int pcnt, userrec *user)
log(DEBUG,"invalid old nick passed to handle_nick");
return;
}
- if (!strcasecmp(user->nick,parameters[0]))
+ if (irc::string(user->nick) == irc::string(parameters[0]))
{
log(DEBUG,"old nick is new nick, skipping");
+ strlcpy(user->nick,parameters[0],NICKMAX);
+ if (user->registered == 7)
+ WriteCommon(user,"NICK %s",parameters[0]);
return;
}
else