diff options
| author | Adam <Adam@anope.org> | 2011-03-10 19:20:58 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-03-10 19:20:58 -0500 |
| commit | 97c2e0957d32c87e1055041e43eb13a4a26d0765 (patch) | |
| tree | 5252ac25aff74a69c744ce83343847bc0203fced /modules/protocol | |
| parent | 09a5791bc63d11f327efee56762ed603dec9b359 (diff) | |
Bug #1251 - Fixed logging inspircd logging us logging inspircd. Also moved the Server::Find messages to debug level 2
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/inspircd-ts6.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h index dda07f5a2..f0fb0addd 100644 --- a/modules/protocol/inspircd-ts6.h +++ b/modules/protocol/inspircd-ts6.h @@ -289,6 +289,15 @@ class InspircdIRCdMessage : public IRCdMessage return true; } + bool OnPrivmsg(const Anope::string &source, const std::vector<Anope::string> ¶ms) + { + /* Ignore privmsgs from the server, which can happen. */ + if (Server::Find(source) != NULL) + return true; + + return IRCdMessage::OnPrivmsg(source, params); + } + /* * [Nov 04 00:08:46.308435 2009] debug: Received: SERVER irc.inspircd.com pass 0 964 :Testnet Central! * 0: name |
