summaryrefslogtreecommitdiff
path: root/src/modules/m_noinvite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_noinvite.cpp')
-rw-r--r--src/modules/m_noinvite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_noinvite.cpp b/src/modules/m_noinvite.cpp
index 1d4d8fedd..a0caade2a 100644
--- a/src/modules/m_noinvite.cpp
+++ b/src/modules/m_noinvite.cpp
@@ -50,7 +50,7 @@ class ModuleNoInvite : public Module
virtual int OnUserPreInvite(userrec* user,userrec* dest,chanrec* channel)
{
- if (channel->IsCustomModeSet('V'))
+ if (channel->IsModeSet('V'))
{
WriteServ(user->fd,"492 %s %s :Can't invite %s to channel (+V set)",user->nick, channel->name, dest->nick);
return 1;