* ---------------------------------------------------
*/
+#include "inspircd.h"
#include "configreader.h"
#include "users.h"
#include "modules.h"
return CMD_FAILURE;
}
- if ((c->modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
+ if ((c->IsModeSet('i')) && (IS_LOCAL(user)))
{
if (c->GetStatus(user) < STATUS_HOP)
{