added possibility to change default trigger (even for registered channels)
[NeonServV5.git] / src / modcmd.h
index fdc2965ded8a26ad85a780b14f2daaec4f7a9e43..2be6f3d5e42a6d9ff80e3d27625228b9e858e916 100644 (file)
@@ -1,4 +1,4 @@
-/* modcmd.h - NeonServ v5.2
+/* modcmd.h - NeonServ v5.3
  * Copyright (C) 2011  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -91,6 +91,8 @@ struct ClientSocket* get_botwise_prefered_bot(int botid, int clientid);
 int register_command(int botid, char *name, cmd_bind_t *func, int paramcount, char *channel_access, int global_access, unsigned int flags);
 int set_trigger_callback(int botid, trigger_callback_t *func);
 
+int flush_trigger_cache(int botid, int clientid);
+
 #define changeChannelTrigger(BOTID,CHAN,NEW) changeBotwiseChannelTrigger(BOTID, 0, CHAN, NEW)
 int changeBotwiseChannelTrigger(int botid, int clientid, struct ChanNode *chan, char *new_trigger);
 
@@ -103,6 +105,8 @@ int bind_botwise_cmd_to_command(int botid, int clientid, char *cmd, char *func);
 #define unbind_cmd(BOTID,CMD) unbind_botwise_cmd(BOTID, 0, CMD)
 int unbind_botwise_cmd(int botid, int clientid, char *cmd);
 
+int unbind_botwise_allcmd(int clientid);
+
 #define bind_set_parameters(BOTID,CMD,PARAMETERS) bind_botwise_set_parameters(BOTID, 0, CMD, PARAMETERS)
 void bind_botwise_set_parameters(int botid, int clientid, char *cmd, char *parameters);