1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Rename ChanUserContainer to Membership.

This commit is contained in:
Sadie Powell
2026-01-14 17:17:37 +00:00
parent 3af9da7c05
commit 792308ed5d
23 changed files with 124 additions and 118 deletions
+5 -5
View File
@@ -571,18 +571,18 @@ private:
}
public:
void OnPreUserKicked(const MessageSource &source, ChanUserContainer *cu, const Anope::string &kickmsg) override
void OnPreUserKicked(const MessageSource &source, Membership *memb, const Anope::string &kickmsg) override
{
if (!cu->chan->ci || !cs_stats.HasExt(cu->chan->ci))
if (!memb->chan->ci || !cs_stats.HasExt(memb->chan->ci))
return;
query = "CALL " + prefix + "chanstats_proc_update(@channel@, @nick@, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0);";
query.SetValue("channel", cu->chan->name);
query.SetValue("nick", GetDisplay(cu->user));
query.SetValue("channel", memb->chan->name);
query.SetValue("nick", GetDisplay(memb->user));
this->RunQuery(query);
query = "CALL " + prefix + "chanstats_proc_update(@channel@, @nick@, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0);";
query.SetValue("channel", cu->chan->name);
query.SetValue("channel", memb->chan->name);
query.SetValue("nick", GetDisplay(source.GetUser()));
this->RunQuery(query);
}