X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fmodules%2Fm_timedbans.cpp;h=6c91d115682dff608555def809c8faa1f8229b41;hb=d3d32dcf6ddb15d8ca9089de63a51b45b437a063;hp=d592581f5d58f13f1494c3baedfb2a850874276d;hpb=0d9e5bd011a1b5c4bb3b094a82744afcdd86cbb3;p=user%2Fhenk%2Fcode%2Finspircd.git 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 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;