From 0757a4a495daabf661ac3b7ab79f0a5ee423abe8 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 12:18:29 +0000 Subject: mass tidyup, change A LOT of stuff to const char** which was char** (such as parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/users.cpp') 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); } } -- cgit v1.2.3