summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-01-15 02:59:09 -0500
committerAdam <Adam@anope.org>2012-01-15 02:59:09 -0500
commita270a13010f4748e6b89bb4d8aa3872e760973eb (patch)
tree4b3c809637bf873a3e49420ad9ece558d122db39
parent964d63cdacdbc3769b269ae0e6e616f58f0256bc (diff)
Fixed crash from last commit
-rw-r--r--src/regchannel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index b8cfbd4ba..1ae7115c9 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -357,7 +357,7 @@ void ChannelInfo::unserialize(serialized_data &data)
{
ChannelInfo *ci = cs_findchan(data["name"].astr());
if (ci == NULL)
- new ChannelInfo(data["name"].astr());
+ ci = new ChannelInfo(data["name"].astr());
if (data.count("founder") > 0)
{