summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-04 19:08:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-04 19:08:34 +0000
commit6b9a97e494e0dc5bccd13733a4a7067e9bbeae2e (patch)
tree7b952795fd1a39d8542f22a5ac57a0d6db1ad035
parent40f2d919a73ae8c901c9a36261f78e2a32b31f88 (diff)
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
-rw-r--r--src/cmd_invite.cpp4
1 files 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;