diff options
Diffstat (limited to 'modules/chanstats.cpp')
-rw-r--r-- | modules/chanstats.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/chanstats.cpp b/modules/chanstats.cpp index 5c7cfca62..f3eb9b1fb 100644 --- a/modules/chanstats.cpp +++ b/modules/chanstats.cpp @@ -212,7 +212,7 @@ class MChanstats final Anope::string GetDisplay(User *u) { - if (u && u->Account() && ns_stats.HasExt(u->Account())) + if (u && u->IsIdentified() && ns_stats.HasExt(u->Account())) return u->Account()->display; else return ""; @@ -532,7 +532,7 @@ public: void OnTopicUpdated(User *source, Channel *c, const Anope::string &user, const Anope::string &topic) override { - if (!source || !source->Account() || !c->ci || !cs_stats.HasExt(c->ci)) + if (!source || !source->IsIdentified() || !c->ci || !cs_stats.HasExt(c->ci)) return; query = "CALL " + prefix + "chanstats_proc_update(@channel@, @nick@, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);"; query.SetValue("channel", c->name); @@ -555,7 +555,7 @@ public: private: void OnModeChange(Channel *c, User *u) { - if (!u || !u->Account() || !c->ci || !cs_stats.HasExt(c->ci)) + if (!u || !u->IsIdentified() || !c->ci || !cs_stats.HasExt(c->ci)) return; query = "CALL " + prefix + "chanstats_proc_update(@channel@, @nick@, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0);"; |