]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_invite.cpp
Set defaults for an enum
[user/henk/code/inspircd.git] / src / cmd_invite.cpp
index c9d4b2d8a2bd13b2e78be461b5e1b3d2a4b2eb67..f4368071a7ffacb2b2dd6d9bef7a6bbfc27eef37 100644 (file)
@@ -11,6 +11,7 @@
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "configreader.h"
 #include "users.h"
 #include "modules.h"
@@ -46,7 +47,7 @@ CmdResult cmd_invite::Handle (const char** parameters, int pcnt, userrec *user)
                        return CMD_FAILURE;
                }
 
-               if ((c->modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
+               if ((c->IsModeSet('i')) && (IS_LOCAL(user)))
                {
                        if (c->GetStatus(user) < STATUS_HOP)
                        {