summaryrefslogtreecommitdiff
path: root/src/map/atcommand.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-27 10:47:11 -0200
committershennetsind <ind@henn.et>2013-11-27 10:47:11 -0200
commit2c6d8fdc747d1699af513d5fe7336a7f33dc716b (patch)
treeb93ed4077cb76fab912bacaa287b13f17057ebb5 /src/map/atcommand.h
parent8ecffa8892e00fc1116e4e34fa448e46774194e5 (diff)
downloadhercules-2c6d8fdc747d1699af513d5fe7336a7f33dc716b.tar.gz
hercules-2c6d8fdc747d1699af513d5fe7336a7f33dc716b.tar.bz2
hercules-2c6d8fdc747d1699af513d5fe7336a7f33dc716b.tar.xz
hercules-2c6d8fdc747d1699af513d5fe7336a7f33dc716b.zip
Plugins can now make use of msg_txt()
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/atcommand.h')
-rw-r--r--src/map/atcommand.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/atcommand.h b/src/map/atcommand.h
index d01f00d8e..ab48b2ca6 100644
--- a/src/map/atcommand.h
+++ b/src/map/atcommand.h
@@ -21,7 +21,7 @@ struct block_list;
**/
#define ATCOMMAND_LENGTH 50
#define MAX_MSG 1500
-
+#define msg_txt(idx) atcommand->msg(idx)
/**
* Enumerations
**/
@@ -111,13 +111,11 @@ struct atcommand_interface {
void (*doload) (void);
void (*base_commands) (void);
bool (*add) (char *name, AtCommandFunc func, bool replace);
+ const char* (*msg) (int msg_number);
};
struct atcommand_interface *atcommand;
-/* will remain outside for a while, we have plans for this little fellow */
-const char* msg_txt(int msg_number);
-
void atcommand_defaults(void);
/* stay here */