diff options
author | Adam <Adam@anope.org> | 2010-10-15 13:25:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-15 13:25:14 -0400 |
commit | f3c2933542d8702ebca37a20d721c8ca6c918771 (patch) | |
tree | daa4d220412c4e4844c1a98769725286896e55c2 /src | |
parent | 4ddb469864451af7d75c0bb448fc0aa22f21558d (diff) |
Fixed an wrong logging example in example.conf and fixed misc messages being not logged as normal
Diffstat (limited to 'src')
-rw-r--r-- | src/logger.cpp | 4 | ||||
-rw-r--r-- | src/users.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 3f1f35735..58183c8b0 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -184,10 +184,10 @@ Log::Log(Server *s, const Anope::string &category) : bi(OperServ), Type(LOG_SERV buf << "SERVER: " << s->GetName() << " (" << s->GetDescription() << ") "; } -Log::Log(BotInfo *b, const Anope::string &category) : bi(b), Type(LOG_USER), Category(category) +Log::Log(BotInfo *b, const Anope::string &category) : bi(b), Type(LOG_NORMAL), Category(category) { if (!b) - b = Global; + this->bi = Global; if (this->bi) this->Sources.push_back(bi->nick); } diff --git a/src/users.cpp b/src/users.cpp index ae9c59a75..6ab771ec1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -839,7 +839,7 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop do_on_id(user); ircdproto->SetAutoIdentificationToken(user); user->SetMode(NickServ, UMODE_REGISTERED); - Log() << Config->s_NickServ << ": " << user->GetMask() << " automatically identified for group " << user->Account()->display; + Log(NickServ) << user->GetMask() << " automatically identified for group " << user->Account()->display; } if (ircd->sqline) |