]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/mode.h
Purge a ton of code related to non <log> related logging.
[user/henk/code/inspircd.git] / include / mode.h
index 1dab442d40ac6d993ae8c8787a89fc93c66e83a1..57f1b0669c6d8a74ee1f3457c06606cc694e1413 100644 (file)
@@ -20,8 +20,7 @@
  */
 
 
-#ifndef MODE_H
-#define MODE_H
+#pragma once
 
 #include "ctables.h"
 
@@ -445,9 +444,6 @@ class CoreExport ModeParser
        unsigned int seq;
 
  public:
-
-       /** The constructor initializes all the RFC basic modes by using ModeParserAddMode().
-        */
        ModeParser();
        ~ModeParser();
 
@@ -455,6 +451,11 @@ class CoreExport ModeParser
         * for example, should 'user A' be able to 'op' on 'channel B'.
         */
        User* SanityChecks(User *user,const char *dest,Channel *chan,int status);
+
+       /** Initialize all built-in modes
+        */
+       static void InitBuiltinModes();
+
        /** Tidy a banmask. This makes a banmask 'acceptable' if fields are left out.
         * E.g.
         *
@@ -561,5 +562,3 @@ class CoreExport ModeParser
         */
        std::string BuildPrefixes(bool lettersAndModes = true);
 };
-
-#endif