summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-18 23:37:58 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-18 23:37:58 +0000
commite1a9c3a9bc1e8afc90548a10f714c3f30794a9ec (patch)
treeb54a411f36e412b404554e5ba99ff9706b64ac14 /src/users.cpp
parent8a04f13c867740dce10fb4e683dbeaa8db5d334c (diff)
Reinvert order of insert/erase into user hash_map to avoid a lil crash :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10557 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 2045a8482..9f9d34fa4 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -945,8 +945,8 @@ User* User::UpdateNickHash(const char* New)
return NULL; /* doesnt exist */
User* olduser = oldnick->second;
- (*(ServerInstance->Users->clientlist))[New] = olduser;
ServerInstance->Users->clientlist->erase(oldnick);
+ (*(ServerInstance->Users->clientlist))[New] = olduser;
return olduser;
}