summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-22 13:27:37 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-10-22 13:27:37 +0000
commit3a5f4f6bd2470e3f510cc807479fceec3f034d1a (patch)
treece8dc75b25e25d6ccbdc87fb471fd65dbfff68d2
parent8dc60e3283e54ad3e626b1e7c7721a5be91f32f4 (diff)
Fix MacGyver's rehash woes..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10687 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/configreader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 1c82b7387..617d5fdd5 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -585,6 +585,11 @@ bool DoneConnect(ServerConfig *conf, const char*)
{
User *u = *n;
+ /*
+ * Make their existing class go away so that SetClass doesn't touch a wild ptr, important!
+ */
+ u->MyClass = NULL;
+
u->SetClass();
/*