summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-07 16:18:33 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-07 16:18:33 +0000
commitfd657b6cd1e459359902deeb10ec55610fe7539f (patch)
treef4eb1e500e4d11b2a21b168ec1febe388c944db4 /src
parentf1426e7c160589e63a52f3387bf2b4d28afa92d4 (diff)
Restrict uninvite
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10119 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_uninvite.cpp5
1 files changed, 2 insertions, 3 deletions
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;
}
}