diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-03 14:07:24 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-07-03 14:07:24 +0000 |
commit | 8be88f3e732e7a40f2e501c5e5b78c7f1b999f2d (patch) | |
tree | 65cf1eadf393f9ffc5ad6db0b41b7db9a5462479 | |
parent | af0bd57ff5b55e8e4602b4a52268bfbfc9c5c442 (diff) |
Fix excessive snomask sending on fitler add/removal
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11434 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_filter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |