diff options
author | Sadie Powell <sadie@witchery.services> | 2024-11-11 17:10:24 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-11-11 17:13:01 +0000 |
commit | df1c6176b38eea8d8889604699012ac8b172e341 (patch) | |
tree | 73a467a7df0882541cd4f9cb5e249972647283f5 /modules/chanstats.cpp | |
parent | 8634594cd1a11d6786e7da44679483718f47cc09 (diff) | |
parent | 96ccfe4cbe9948206ac2d6854778f9a268d2476f (diff) |
Merge branch '2.0' into 2.1.
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);"; |