summaryrefslogtreecommitdiff
path: root/modules/commands/cs_unban.cpp
diff options
context:
space:
mode:
authork4bek4be <34816207+k4bek4be@users.noreply.github.com>2022-01-10 16:50:17 +0100
committerGitHub <noreply@github.com>2022-01-10 15:50:17 +0000
commit9b0c7929d9fcb158420d1333369bf20e52981f09 (patch)
tree79091ddbced05193111cc9d8a0f3673dc4716fa6 /modules/commands/cs_unban.cpp
parentd895a3aa017f02ceeafddfd54432abb43b9497cf (diff)
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
Diffstat (limited to 'modules/commands/cs_unban.cpp')
-rw-r--r--modules/commands/cs_unban.cpp4
1 files changed, 4 insertions, 0 deletions
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())