summaryrefslogtreecommitdiff
path: root/src/map/atcommand.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-24 05:50:20 -0200
committershennetsind <ind@henn.et>2013-10-24 05:50:20 -0200
commit8b07c677e351056b0d23fbc3726f80829ae4d253 (patch)
tree7020d88a5e56975c1a40e078246fbdd20408f548 /src/map/atcommand.h
parent45d8123e73ea9b213ad57c32524286fe44a08721 (diff)
downloadhercules-8b07c677e351056b0d23fbc3726f80829ae4d253.tar.gz
hercules-8b07c677e351056b0d23fbc3726f80829ae4d253.tar.bz2
hercules-8b07c677e351056b0d23fbc3726f80829ae4d253.tar.xz
hercules-8b07c677e351056b0d23fbc3726f80829ae4d253.zip
Fixed Bug #7759
Modified how @commands from HPM plugins are handled so that they are persistent to @reloadatcommand (also prepares for the future load/unload during runtime feature) http://hercules.ws/board/tracker/issue-7759-reloadatcommand/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.h')
-rw-r--r--src/map/atcommand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/atcommand.h b/src/map/atcommand.h
index 603abc0cc..63c38e4d1 100644
--- a/src/map/atcommand.h
+++ b/src/map/atcommand.h
@@ -110,6 +110,7 @@ struct atcommand_interface {
int (*cmd_db_clear_sub) (DBKey key, DBData *data, va_list args);
void (*doload) (void);
void (*base_commands) (void);
+ bool (*add) (char *name, AtCommandFunc func);
};
struct atcommand_interface *atcommand;