From 53aaf31285c1168b1d0d1aca5e67b6323b0d0910 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 20 Dec 2005 09:41:52 +0000 Subject: Allow case changes in nick w00t -> w00T git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2582 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_nick.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cmd_nick.cpp') 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 -- cgit v1.2.3