1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 07:16:38 +02:00

Bug #1251 - Fixed logging inspircd logging us logging inspircd. Also moved the Server::Find messages to debug level 2

This commit is contained in:
Adam
2011-03-10 19:20:58 -05:00
parent 09a5791bc6
commit 97c2e0957d
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -289,6 +289,15 @@ class InspircdIRCdMessage : public IRCdMessage
return true;
}
bool OnPrivmsg(const Anope::string &source, const std::vector<Anope::string> &params)
{
/* 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
+2 -2
View File
@@ -261,7 +261,7 @@ bool Server::IsULined() const
*/
Server *Server::Find(const Anope::string &name, Server *s)
{
Log(LOG_DEBUG) << "Server::Find called for " << name;
Log(LOG_DEBUG_2) << "Server::Find called for " << name;
if (!s)
s = Me;
@@ -276,7 +276,7 @@ Server *Server::Find(const Anope::string &name, Server *s)
if (serv->GetName().equals_cs(name) || serv->GetSID().equals_cs(name))
return serv;
Log(LOG_DEBUG) << "Server::Find checking " << serv->GetName() << " server tree for " << name;
Log(LOG_DEBUG_2) << "Server::Find checking " << serv->GetName() << " server tree for " << name;
Server *server = Server::Find(name, serv);
if (server)
return server;