From fd657b6cd1e459359902deeb10ec55610fe7539f Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 7 Aug 2008 16:18:33 +0000 Subject: Restrict uninvite git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10119 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_uninvite.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp index 1761f354c..7b9d7416b 100644 --- a/src/modules/m_uninvite.cpp +++ b/src/modules/m_uninvite.cpp @@ -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; } } -- cgit v1.2.3