summaryrefslogtreecommitdiff
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_timedbans.cpp')
-rw-r--r--src/modules/m_timedbans.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index d592581f5..6c91d1156 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -162,12 +162,7 @@ class ModuleTimedBans : public Module
setban[1] = "-b";
setban[2] = i->mask.c_str();
- /* Send mode remotely*/
- std::deque<std::string> n;
- n.push_back("-b");
- n.push_back(setban[2]);
-
- ServerInstance->PI->SendMode(i->channel, n);
+ ServerInstance->PI->SendMode(i->channel, std::string("-b ") + setban[2]);
ServerInstance->SendMode(setban,3, ServerInstance->FakeClient);
CUList empty;