]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_invite.cpp
Whoops, i left a value out of the array, and gcc didnt warn!
[user/henk/code/inspircd.git] / src / cmd_invite.cpp
index 21f9e91cc16cc0dbb4944ded25a2aa41b7ff074d..f4368071a7ffacb2b2dd6d9bef7a6bbfc27eef37 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "configreader.h"
 #include "users.h"
 #include "modules.h"
 #include "commands/cmd_invite.h"
 
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_invite(Instance);
 }
@@ -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)
                        {