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/modules/m_dccallow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 7ac1bc737..0ae5791cd 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -268,13 +268,13 @@ class ModuleDCCAllow : public Module virtual void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message) { - dccallowlist* dl; + dccallowlist* udl; // remove their DCCALLOW list if they have one - user->GetExt("dccallow_list", dl); - if (dl) + user->GetExt("dccallow_list", udl); + if (udl) { - delete dl; + delete udl; user->Shrink("dccallow_list"); RemoveFromUserlist(user); } @@ -389,17 +389,17 @@ class ModuleDCCAllow : public Module { if (dl->size()) { - dccallowlist::iterator iter = dl->begin(); - while (iter != dl->end()) + dccallowlist::iterator iter2 = dl->begin(); + while (iter2 != dl->end()) { - if ((iter->set_on + iter->length) <= ServerInstance->Time()) + if ((iter2->set_on + iter2->length) <= ServerInstance->Time()) { - u->WriteServ("997 %s %s :DCCALLOW entry for %s has expired", u->nick, u->nick, iter->nickname.c_str()); - iter = dl->erase(iter); + u->WriteServ("997 %s %s :DCCALLOW entry for %s has expired", u->nick, u->nick, iter2->nickname.c_str()); + iter2 = dl->erase(iter2); } else { - ++iter; + ++iter2; } } } -- cgit v1.2.3