From d3d32dcf6ddb15d8ca9089de63a51b45b437a063 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 13:21:12 +0000 Subject: A convenience function for ProtocolInterface::SendMode that just takes a string, then splits it internally to deque for sending to the other function of the same name git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9303 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/modules/m_timedbans.cpp') 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; -- cgit v1.3.1-10-gc9f91