summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-10-19 02:09:30 +0200
committerattilamolnar <attilamolnar@hush.com>2012-11-19 18:32:39 +0100
commit5c20fd57ec1913dc787b7c620bb4032851dd0d64 (patch)
treefb675039a80f3f30e2657612c7a0807b7cb31932 /src/modules/m_timedbans.cpp
parent81d7a5b538737cd568c30e158b408721ef1824c2 (diff)
Remove usage of deprecated CallCommandHandler() and IsValidModuleCommand()
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 6b12a5aaf..472e79ca4 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -82,9 +82,9 @@ class CommandTban : public Command
setban.push_back(parameters[0]);
setban.push_back("+b");
setban.push_back(parameters[2]);
- // use CallCommandHandler to make it so that the user sets the mode
+ // use CallHandler to make it so that the user sets the mode
// themselves
- ServerInstance->CallCommandHandler("MODE",setban,user);
+ ServerInstance->Parser->CallHandler("MODE",setban,user);
for (BanList::iterator i = channel->bans.begin(); i != channel->bans.end(); i++)
if (!strcasecmp(i->data.c_str(), mask.c_str()))
goto found;