* ---------------------------------------------------
*/
+#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);
}
return CMD_FAILURE;
}
- if ((c->modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
+ if ((c->IsModeSet('i')) && (IS_LOCAL(user)))
{
if (c->GetStatus(user) < STATUS_HOP)
{