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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user