diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-12 22:05:59 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-12 22:08:35 +0000 |
commit | a631028660d527f509c3b028cfa5f2903a125077 (patch) | |
tree | 830ba6644bb312af32847db654bfb842ed44a7cd /modules/commands/cs_unban.cpp | |
parent | 4e5fc9797c2ea285e855f808dc65694d1cdba358 (diff) | |
parent | 04257b9d6ab0fa1a63ade1d2ad0edc2d08eb74ce (diff) |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/commands/cs_unban.cpp')
-rw-r--r-- | modules/commands/cs_unban.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/commands/cs_unban.cpp b/modules/commands/cs_unban.cpp index 897ad468f..438275ed2 100644 --- a/modules/commands/cs_unban.cpp +++ b/modules/commands/cs_unban.cpp @@ -1,6 +1,6 @@ /* ChanServ core functions * - * (C) 2003-2021 Anope Team + * (C) 2003-2022 Anope Team * Contact us at team@anope.org * * Please read COPYING and README for further details. @@ -45,6 +45,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)) ++count; @@ -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()) |