From 8be88f3e732e7a40f2e501c5e5b78c7f1b999f2d Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 3 Jul 2009 14:07:24 +0000 Subject: Fix excessive snomask sending on fitler add/removal git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11434 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 1818ca17d..fb4538224 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -144,7 +144,7 @@ class CommandFilter : public Command if (Base->DeleteFilter(parameters[0])) { user->WriteServ("NOTICE %s :*** Removed filter '%s'", user->nick.c_str(), parameters[0].c_str()); - ServerInstance->SNO->WriteGlobalSno('a', std::string("FILTER: ")+user->nick+" removed filter '"+parameters[0]+"'"); + ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(user) ? 'a' : 'A', std::string("FILTER: ")+user->nick+" removed filter '"+parameters[0]+"'"); return CMD_SUCCESS; } else @@ -195,7 +195,7 @@ class CommandFilter : public Command type.c_str(), (duration ? ", duration " : ""), (duration ? parameters[3].c_str() : ""), flags.c_str(), reason.c_str()); - ServerInstance->SNO->WriteGlobalSno('a', std::string("FILTER: ")+user->nick+" added filter '"+freeform+"', type '"+type+"', "+(duration ? "duration "+parameters[3]+", " : "")+"flags '"+flags+"', reason: "+reason); + ServerInstance->SNO->WriteToSnoMask(IS_LOCAL(user) ? 'a' : 'A', std::string("FILTER: ")+user->nick+" added filter '"+freeform+"', type '"+type+"', "+(duration ? "duration "+parameters[3]+", " : "")+"flags '"+flags+"', reason: "+reason); return CMD_SUCCESS; } -- cgit v1.2.3