diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-11 10:26:18 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-11 10:26:18 +0000 |
commit | 4798f98adad084cf9e207cc7b32d7e4370e9cc90 (patch) | |
tree | 97c98887415f3ec339212b3d179664ba11fb3a48 /src/modules/m_messageflood.cpp | |
parent | 25c8c8ba0247236f660bbbbfc665ae735f88fc31 (diff) |
Last of the -Wshadow fixes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8894 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_messageflood.cpp')
-rw-r--r-- | src/modules/m_messageflood.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index d3090a7bd..94871a2ed 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -140,8 +140,8 @@ class MsgFlood : public ModeHandler if (!channel->GetExt("flood", f)) { parameter = std::string(ban ? "*" : "") + ConvToStr(nlines) + ":" +ConvToStr(nsecs); - floodsettings *f = new floodsettings(ban,nsecs,nlines); - channel->Extend("flood",f); + floodsettings *fs = new floodsettings(ban,nsecs,nlines); + channel->Extend("flood",fs); channel->SetMode('f', true); channel->SetModeParam('f', parameter.c_str(), true); return MODEACTION_ALLOW; @@ -160,9 +160,9 @@ class MsgFlood : public ModeHandler if (((nlines != f->lines) || (nsecs != f->secs)) && ((nsecs > 0) && (nlines > 0)) || (ban != f->ban)) { delete f; - floodsettings *f = new floodsettings(ban,nsecs,nlines); + floodsettings *fs = new floodsettings(ban,nsecs,nlines); channel->Shrink("flood"); - channel->Extend("flood",f); + channel->Extend("flood",fs); channel->SetModeParam('f', cur_param.c_str(), false); channel->SetModeParam('f', parameter.c_str(), true); return MODEACTION_ALLOW; |