mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Improve the restrictchans error message.
This commit is contained in:
parent
a2296c9141
commit
127ab6bffc
@ -83,7 +83,8 @@ public:
|
||||
// channel does not yet exist (record is null, about to be created IF we were to allow it)
|
||||
if (!override && !chan && !CanCreateChannel(user, cname))
|
||||
{
|
||||
user->WriteNumeric(ERR_RESTRICTED, cname, "You are not allowed to create new channels.");
|
||||
const auto* reason = allowregistered ? "logged into an account" : "a server operator";
|
||||
user->WriteNumeric(ERR_RESTRICTED, cname, INSP_FORMAT("You must be {} to create new channels.", reason));
|
||||
return MOD_RES_DENY;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user