From cd7301e6f90c9fdaf86769b862389090fe4e455a Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 18 May 2008 14:19:16 +0000 Subject: Log all snomasks to "snomask" log type, level DEFAULT. This means your log gets all the snomasks in it, but you can filter them out with "-snomask". This allows a user to redirect them to a channel with m_chanlog git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9729 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/snomasks.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 2309b9ac0..1a130fb5a 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -135,9 +135,11 @@ void Snomask::Flush() { a->WriteServ("NOTICE %s :*** %s: %s", a->nick, this->Description.c_str(), this->LastMessage.c_str()); + ServerInstance->Logs->Log("snomask", DEFAULT, "%s: %s", this->Description.c_str(), this->LastMessage.c_str()); if (Count > 1) { a->WriteServ("NOTICE %s :*** %s: (last message repeated %u times)", a->nick, this->Description.c_str(), Count); + ServerInstance->Logs->Log("snomask", DEFAULT, "%s: (last message repeated %u times)", this->Description.c_str(), Count); } } } -- cgit v1.2.3