summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_noinvite.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index 0d6c56d99..0126b11c0 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -38,12 +38,15 @@ class ModuleNoInvite : public Module
virtual int OnUserPreInvite(User* user,User* dest,Channel* channel, time_t timeout)
{
- if (channel->IsModeSet('V'))
+ if (IS_LOCAL(user))
{
- user->WriteNumeric(492, "%s %s :Can't invite %s to channel (+V set)",user->nick.c_str(), channel->name.c_str(), dest->nick.c_str());
- return 1;
+ if (channel->IsModeSet('V'))
+ {
+ user->WriteNumeric(492, "%s %s :Can't invite %s to channel (+V set)",user->nick.c_str(), channel->name.c_str(), dest->nick.c_str());
+ return 1;
+ }
+ return 0;
}
- return 0;
}
virtual ~ModuleNoInvite()