mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Restrict uninvite
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10119 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f1426e7c16
commit
fd657b6cd1
@ -46,12 +46,11 @@ class CommandUninvite : public Command
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
|
||||
if (c->modes[CM_INVITEONLY])
|
||||
if (IS_LOCAL(user))
|
||||
{
|
||||
if (c->GetStatus(user) < STATUS_HOP)
|
||||
{
|
||||
user->WriteNumeric(482, "%s %s :You must be at least a%soperator to change modes on this channel",user->nick.c_str(), c->name.c_str(),
|
||||
ServerInstance->Config->AllowHalfop ? " half-" : " channel ");
|
||||
user->WriteNumeric(ERR_CHANOPRIVSNEEDED, "%s %s :You must be a channel %soperator", user->nick.c_str(), c->name.c_str(), c->GetStatus(u) == STATUS_HOP ? "" : "half-");
|
||||
return CMD_FAILURE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user