From 5db1d322be106c8462dc691072f9415dc0766ed4 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 11 Feb 2008 09:41:58 +0000 Subject: Add -Wshadow to cflags, and fix a bunch of warnings that come with it. Add a note to webirc that needs looking at. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8892 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index cab05caeb..bb388e21e 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -18,14 +18,14 @@ #include "wildcard.h" #include "mode.h" -Channel::Channel(InspIRCd* Instance, const std::string &name, time_t ts) : ServerInstance(Instance) +Channel::Channel(InspIRCd* Instance, const std::string &cname, time_t ts) : ServerInstance(Instance) { chan_hash::iterator findchan = ServerInstance->chanlist->find(name); if (findchan != Instance->chanlist->end()) - throw CoreException("Cannot create duplicate channel " + name); + throw CoreException("Cannot create duplicate channel " + cname); - (*(ServerInstance->chanlist))[name.c_str()] = this; - strlcpy(this->name, name.c_str(), CHANMAX); + (*(ServerInstance->chanlist))[cname.c_str()] = this; + strlcpy(this->name, cname.c_str(), CHANMAX); this->created = ts ? ts : ServerInstance->Time(true); this->age = this->created; -- cgit v1.3.1-10-gc9f91