diff options
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); |