summaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-29 02:43:16 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-29 02:43:16 +0000
commitd2a71fd3447c8bac65cc26077e2b9fc3fb0b28a7 (patch)
tree648fcf8fa6ca20ab599d618fd33433a761639d98 /src/modules/m_nickflood.cpp
parent1064b6732975ad32ac32147974a3af2d888a7e12 (diff)
Overloading SetMode seems to cause the compiler to interpret "" as a bool and not a string. Fixes bug #849
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11335 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 0a8e9a31d..81f5d9ea9 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -144,7 +144,7 @@ class NickFlood : public ModeHandler
parameter = ConvToStr(nnicks) + ":" +ConvToStr(nsecs);
nickfloodsettings *f = new nickfloodsettings(ServerInstance, nsecs, nnicks);
channel->Extend("nickflood", f);
- channel->SetMode('F', parameter);
+ channel->SetModeParam('F', parameter);
return MODEACTION_ALLOW;
}
else
@@ -167,7 +167,7 @@ class NickFlood : public ModeHandler
f = new nickfloodsettings(ServerInstance, nsecs, nnicks);
channel->Shrink("nickflood");
channel->Extend("nickflood", f);
- channel->SetMode('F', parameter);
+ channel->SetModeParam('F', parameter);
return MODEACTION_ALLOW;
}
else
@@ -192,7 +192,7 @@ class NickFlood : public ModeHandler
channel->GetExt("nickflood", f);
delete f;
channel->Shrink("nickflood");
- channel->SetMode('F', "");
+ channel->SetModeParam('F', "");
return MODEACTION_ALLOW;
}
}