1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 12:53:13 +02:00

Add the intended target of the mode to CanSet.

This commit is contained in:
Sadie Powell
2025-07-25 21:07:26 +01:00
parent 4d2870fa45
commit 6d754b7d73
8 changed files with 33 additions and 32 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class ChannelModeLargeBan final
public:
ChannelModeLargeBan(const Anope::string &mname, char modeChar) : ChannelMode(mname, modeChar) { }
bool CanSet(User *u) const override
bool CanSet(User *u, Channel *c) const override
{
return u && u->HasMode("OPER");
}