-/* modcmd.h - NeonServ v5.1
+/* modcmd.h - NeonServ v5.2
* Copyright (C) 2011 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
#define CMDFLAG_CHAN_PARAM 0x0080
#define CMDFLAG_LOG 0x0100
#define CMDFLAG_OPLOG 0x0200
+#define CMDFLAG_EMPTY_ARGS 0x0400
+#define CMDFLAG_REQUIRED 0x0800
+#define CMDFLAG_TEMPONARY_BIND 0x1000
+#define CMDFLAG_FUNCMD 0x2000
+#define CMDFLAG_ESCAPE_ARGS 0x4000
struct ClientSocket;
struct UserNode;
int paramcount;
int global_access;
char *channel_access;
+ int triggered;
struct cmd_binding *next;
};
struct trigger_cache *next;
};
+extern int statistics_commands;
+
void init_modcmd();
void free_modcmd();
struct ClientSocket* get_prefered_bot(int botid);
void bind_set_global_access(int botid, char *cmd, int gaccess);
void bind_set_channel_access(int botid, char *cmd, char *chanaccess);
struct cmd_binding *find_cmd_binding(int botid, char *cmd);
+void bind_unbound_required_functions(int botid);
+
+void register_command_alias(int botid, char *alias);
+struct cmd_binding *getAllBinds(struct cmd_binding *last);
#endif
\ No newline at end of file