From 9b0c7929d9fcb158420d1333369bf20e52981f09 Mon Sep 17 00:00:00 2001 From: k4bek4be <34816207+k4bek4be@users.noreply.github.com> Date: Mon, 10 Jan 2022 16:50:17 +0100 Subject: Multiple updates for unreal4 protocol (#285) * Parse PROTOCTL PREFIX and PROTOCTL USERMODES * Add several previously unhandled modes * Fix incorrect SJOIN prefix handling * Enable message tags sending from ircd * Add timedban matcher * Add operclass matcher * Store all client and channel moddata. * Call unreal's internal unban on /cs unban * Check for ~a:0 ban * Add country ban matcher * Use +B umode for services bots --- modules/commands/cs_unban.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/commands') diff --git a/modules/commands/cs_unban.cpp b/modules/commands/cs_unban.cpp index fe80252d1..93175f308 100644 --- a/modules/commands/cs_unban.cpp +++ b/modules/commands/cs_unban.cpp @@ -44,6 +44,8 @@ class CommandCSUnban : public Command if (!ci->c || !source.AccessFor(ci).HasPriv("UNBAN")) continue; + + FOREACH_MOD(OnChannelUnban, (source.GetUser(), ci)); for (unsigned j = 0; j < modes.size(); ++j) if (ci->c->Unban(source.GetUser(), modes[j]->name, true)) @@ -88,6 +90,8 @@ class CommandCSUnban : public Command bool override = !source.AccessFor(ci).HasPriv("UNBAN") && source.HasPriv("chanserv/kick"); Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to unban " << u2->nick; + FOREACH_MOD(OnChannelUnban, (u2, ci)); + for (unsigned i = 0; i < modes.size(); ++i) ci->c->Unban(u2, modes[i]->name, source.GetUser() == u2); if (u2 == source.GetUser()) -- cgit