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_channames.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules/m_channames.cpp') diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp index 01f176e3b..032e1104c 100644 --- a/src/modules/m_channames.cpp +++ b/src/modules/m_channames.cpp @@ -76,8 +76,7 @@ class ModuleChannelNames : public Module modes.push_back(c->name); modes.push_back("-P"); - ServerInstance->SendMode(modes, ServerInstance->FakeClient); - ServerInstance->PI->SendMode(c->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate()); + ServerInstance->SendGlobalMode(modes, ServerInstance->FakeClient); } const UserMembList* users = c->GetUsers(); for(UserMembCIter j = users->begin(); j != users->end(); ++j) -- cgit v1.2.3