fixed last commits
[NeonServV5.git] / modcmd.h
index 8b189863927a6b8756057f999cf02101833ee21f..932fc1062873cf772334ce115d29b31b3f9e3d44 100644 (file)
--- a/modcmd.h
+++ b/modcmd.h
@@ -7,6 +7,7 @@
 #define CMDFLAG_REQUIRE_GOD  0x04
 #define CMDFLAG_CHECK_AUTH   0x08
 #define CMDFLAG_OVERRIDE_ACCESS 0x10
+#define CMDFLAG_REGISTERED_CHAN 0x20
 
 struct ClientSocket;
 struct UserNode;
@@ -32,7 +33,7 @@ struct cmd_binding {
     struct cmd_function *func;
     unsigned int flags;
     char *parameters;
-    int access;
+    int gaccess;
     
     struct cmd_binding *next;
 };
@@ -55,6 +56,6 @@ int bind_cmd_to_command(int botid, char *cmd, char *func);
 int unbind_cmd(int botid, char *cmd);
 struct ClientSocket *getTextBot();
 void bind_set_parameters(int botid, char *cmd, char *parameters);
-void bind_set_gaccess(int botid, char *cmd, int access);
+void bind_set_gaccess(int botid, char *cmd, int gaccess);
 
 #endif
\ No newline at end of file