]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_invite.cpp
Remove an extern, partly because it's unused, partly because it then gets shadowed...
[user/henk/code/inspircd.git] / src / cmd_invite.cpp
index 3dbabe85946fd417c85fab4ee7496dad3e88c08d..8baeb30b093756c237dc91f749c1fe047ccaa9b4 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 "message.h"
 #include "cmd_invite.h"
 
 extern ServerConfig* Config;
@@ -64,7 +51,7 @@ void cmd_invite::Handle (char **parameters, int pcnt, userrec *user)
                        return;
                }
 
-               if ((c->custom_modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
+               if ((c->modes[CM_INVITEONLY]) && (IS_LOCAL(user)))
                {
                        if (cstatus(user,c) < STATUS_HOP)
                        {