summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f455bb825..1e2e35321 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -944,7 +944,7 @@ void FullConnectUser(userrec* user, CullList* Goners)
* re-allocates a nick in the user_hash after they change nicknames,
* returns a pointer to the new user as it may have moved
*/
-userrec* ReHashNick(char* Old, char* New)
+userrec* ReHashNick(const char* Old, const char* New)
{
//user_hash::iterator newnick;
user_hash::iterator oldnick = clientlist.find(Old);
@@ -1003,10 +1003,10 @@ void force_nickchange(userrec* user,const char* newnick)
if (user->registered == 7)
{
- char* pars[1];
-
+ const char* pars[1];
pars[0] = nick;
std::string cmd = "NICK";
+
ServerInstance->Parser->CallHandler(cmd,pars,1,user);
}
}