From 2b3d8e3d1841425af7412b3bf25657cf334c0175 Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 28 Jan 2010 20:16:31 +0000 Subject: Fix empty FMODE being sent if SendMode mode changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12323 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_timedbans.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_timedbans.cpp') diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp index 91868e46e..eaa5cd88e 100644 --- a/src/modules/m_timedbans.cpp +++ b/src/modules/m_timedbans.cpp @@ -169,8 +169,7 @@ class ModuleTimedBans : public Module cr->WriteAllExcept(ServerInstance->FakeClient, true, '@', empty, "NOTICE %s :%s", cr->name.c_str(), expiry.c_str()); ServerInstance->PI->SendChannelNotice(cr, '@', expiry); - ServerInstance->SendMode(setban, ServerInstance->FakeClient); - ServerInstance->PI->SendMode(chan, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate()); + ServerInstance->SendGlobalMode(setban, ServerInstance->FakeClient); } } else -- cgit v1.3.1-10-gc9f91