From 8a3695e4b0d43f594f2673918c8d1215f9319d63 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 6 Apr 2008 20:10:33 +0000 Subject: 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 --- src/channels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/channels.cpp') 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); -- cgit v1.3.1-10-gc9f91