From 6b9a97e494e0dc5bccd13733a4a7067e9bbeae2e Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 4 Feb 2006 19:08:34 +0000 Subject: Allow remote users to INVITE regardless of channel membership or op status, to prevent desync possibility git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3078 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_invite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp index 34a44b62f..6f6cbaa7d 100644 --- a/src/cmd_invite.cpp +++ b/src/cmd_invite.cpp @@ -62,7 +62,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user) return; } - if (c->binarymodes & CM_INVITEONLY) + if ((c->binarymodes & CM_INVITEONLY) && (IS_LOCAL(user))) { if (cstatus(user,c) < STATUS_HOP) { @@ -75,7 +75,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user) WriteServ(user->fd,"443 %s %s %s :Is already on channel %s",user->nick,u->nick,c->name,c->name); return; } - if (!has_channel(user,c)) + if ((IS_LOCAL(user)) && (!has_channel(user,c))) { WriteServ(user->fd,"442 %s %s :You're not on that channel!",user->nick, c->name); return; -- cgit v1.2.3