summaryrefslogtreecommitdiff
path: root/src/cmd_invite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_invite.cpp')
-rw-r--r--src/cmd_invite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp
index bd2123311..3dbabe859 100644
--- a/src/cmd_invite.cpp
+++ b/src/cmd_invite.cpp
@@ -64,7 +64,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user)
return;
}
- if ((c->binarymodes & CM_INVITEONLY) && (IS_LOCAL(user)))
+ if ((c->custom_modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
{
if (cstatus(user,c) < STATUS_HOP)
{