X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodcmd.h;h=4717dad6d8ae2d1b596e0f0b7518650f6ea488d2;hb=2d9db1adb1946aba00b203f40eff7d5db8163f01;hp=e33a54a6002aa69fcccdba03b4e38f6c8b56bac1;hpb=95fed4deda0319bee515e44ceec0c77061a2c04e;p=NeonServV5.git diff --git a/src/modcmd.h b/src/modcmd.h index e33a54a..4717dad 100644 --- a/src/modcmd.h +++ b/src/modcmd.h @@ -1,4 +1,4 @@ -/* modcmd.h - NeonServ v5.0 +/* modcmd.h - NeonServ v5.1 * 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 @@ -55,7 +57,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;