diff options
| author | 2008-05-31 18:43:31 +0000 | |
|---|---|---|
| committer | 2008-05-31 18:43:31 +0000 | |
| commit | 51d225247e79f87c2d5bb124d666cd276ba7786e (patch) | |
| tree | 440411a993af2340d8ca391b3fee9015656488a7 /src/modules/m_noinvite.cpp | |
| parent | backport. (diff) | |
Fix bug found by the atheme migration testing: +V should never affect INVITE from a remote issuer
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@9825 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_noinvite.cpp')
| -rw-r--r-- | src/modules/m_noinvite.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp index d545013a1..871bbcd6f 100644 --- a/src/modules/m_noinvite.cpp +++ b/src/modules/m_noinvite.cpp @@ -65,12 +65,15 @@ class ModuleNoInvite : public Module virtual int OnUserPreInvite(userrec* user,userrec* dest,chanrec* channel) { - if (channel->IsModeSet('V')) + if (IS_LOCAL(user)) { - user->WriteServ("492 %s %s :Can't invite %s to channel (+V set)",user->nick, channel->name, dest->nick); - return 1; + if (channel->IsModeSet('V')) + { + user->WriteServ("492 %s %s :Can't invite %s to channel (+V set)",user->nick, channel->name, dest->nick); + return 1; + } + return 0; } - return 0; } virtual ~ModuleNoInvite() |
