*** VERSION 5.2.0 ***
[NeonServV5.git] / src / modcmd.h
index e33a54a6002aa69fcccdba03b4e38f6c8b56bac1..6d01cbf3940a1402a746123f5cae837bc673670c 100644 (file)
@@ -1,4 +1,4 @@
-/* modcmd.h - NeonServ v5.0
+/* modcmd.h - NeonServ v5.2
  * Copyright (C) 2011  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -18,6 +18,8 @@
 #define _modcmd_h
 #include "main.h"
 
+#define MAXPARAMETERS 50
+
 #define CMDFLAG_REQUIRE_CHAN            0x0001
 #define CMDFLAG_REQUIRE_AUTH            0x0002
 #define CMDFLAG_REQUIRE_GOD             0x0004
@@ -28,6 +30,7 @@
 #define CMDFLAG_CHAN_PARAM              0x0080
 #define CMDFLAG_LOG                     0x0100
 #define CMDFLAG_OPLOG                   0x0200
+#define CMDFLAG_EMPTY_ARGS              0x0400
 
 struct ClientSocket;
 struct UserNode;
@@ -55,7 +58,8 @@ struct cmd_binding {
     int botid;
     struct cmd_function *func;
     unsigned int flags;
-    char *parameters;
+    char *parameters[MAXPARAMETERS];
+    int paramcount;
     int global_access;
     char *channel_access;