]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_invite.cpp
Gah, im forgetting to SetMode!
[user/henk/code/inspircd.git] / src / cmd_invite.cpp
index bd212331138986ea701d9a695c0e8108848488ed..0eaafe2117fbed9addb1643900c5b74f9cc78e5a 100644 (file)
  * ---------------------------------------------------
  */
 
-using namespace std;
-
-#include "inspircd_config.h"
-#include "inspircd.h"
-#include "inspircd_io.h"
-#include <string>
 #include <vector>
-#include <deque>
+#include "configreader.h"
 #include "users.h"
-#include "ctables.h"
-#include "globals.h"
 #include "modules.h"
-#include "dynamic.h"
-#include "message.h"
 #include "commands.h"
-#include "inspstring.h"
 #include "helperfuncs.h"
-#include "hashcomp.h"
-#include "typedefs.h"
-#include "command_parse.h"
-#include "cmd_invite.h"
+#include "message.h"
+#include "commands/cmd_invite.h"
 
 extern ServerConfig* Config;
 extern int MODCOUNT;
@@ -64,7 +51,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user)
                        return;
                }
 
-               if ((c->binarymodes & CM_INVITEONLY) && (IS_LOCAL(user)))
+               if ((c->modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
                {
                        if (cstatus(user,c) < STATUS_HOP)
                        {