diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 14:19:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-18 14:19:16 +0000 |
commit | cd7301e6f90c9fdaf86769b862389090fe4e455a (patch) | |
tree | 0d0b1b874325f3214baf7029ba11e8b20c9d05d5 /src | |
parent | 917d2a3dd76f795074cb434f1501142764665440 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/snomasks.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } } |