diff options
author | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
commit | 16ca76c2e7ab287e480185fbb03a0bb438351eda (patch) | |
tree | dfb25534afa2352b65b2ee707086cb5eecc96fbb /src/bots.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index dfe46ea67..86d0a0136 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -31,11 +31,13 @@ #include "event.h" #include "modules/chanserv.h" -ServiceBot::ServiceBot(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes) : LocalUser(nnick, nuser, nhost, "", "", Me, nreal, Anope::CurTime, "", IRCD ? IRCD->UID_Retrieve() : "", NULL), botmodes(bmodes) +ServiceBot::ServiceBot(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes) + : LocalUser(nnick, nuser, nhost, "", "", Me, nreal, Anope::CurTime, "", IRCD ? IRCD->UID_Retrieve() : "", NULL) + , botmodes(bmodes) + , logger(this) { this->type = UserType::BOT; this->lastmsg = Anope::CurTime; - this->introduced = false; EventManager::Get()->Dispatch(&Event::CreateBot::OnCreateBot, this); |