+ /* If its exactly the same, even case, dont do anything. */
+ if (!strcmp(user->nick,parameters[0]))
+ return;
+ /* Its a change of case. People insisted that they should be
+ * able to do silly things like this even though the RFC says
+ * the nick AAA is the same as the nick aaa.
+ */
+ log(DEBUG,"old nick is new nick, not updating hash (case change only)");
+ strlcpy(oldnick, user->nick, NICKMAX - 1);
+ int MOD_RESULT = 0;
+ FOREACH_RESULT(I_OnUserPreNick,OnUserPreNick(user,parameters[0]));
+ if (MOD_RESULT)
+ return;
+ if (user->registered == 7)
+ WriteCommon(user,"NICK %s",parameters[0]);
+ strlcpy(user->nick, parameters[0], NICKMAX - 1);
+ FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(user,oldnick));