summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 20:10:33 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 20:10:33 +0000
commit8a3695e4b0d43f594f2673918c8d1215f9319d63 (patch)
tree83d61fce3e98b064b06326a95ade7767d6072e9f /src/channels.cpp
parent19bcd43f256258b90c1788e899ea5fe0dc044b4b (diff)
Stupid, stupid :| use the correct variable to find existing channel (this caused my spurious CoreException crash, Brain)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9385 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 6b89883bd..49c289784 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -20,7 +20,7 @@
Channel::Channel(InspIRCd* Instance, const std::string &cname, time_t ts) : ServerInstance(Instance)
{
- chan_hash::iterator findchan = ServerInstance->chanlist->find(name);
+ chan_hash::iterator findchan = ServerInstance->chanlist->find(cname);
if (findchan != Instance->chanlist->end())
throw CoreException("Cannot create duplicate channel " + cname);