summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
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.c
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.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index b45807cf8..01711f21b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -72,8 +72,7 @@ struct atcmd_binding_data* get_atcommandbind_byname(const char* name) {
//-----------------------------------------------------------
// Return the message string of the specified number by [Yor]
//-----------------------------------------------------------
-const char* msg_txt(int msg_number)
-{
+const char* atcommand_msg(int msg_number) {
if (msg_number >= 0 && msg_number < MAX_MSG &&
atcommand->msg_table[msg_number] != NULL && atcommand->msg_table[msg_number][0] != '\0')
return atcommand->msg_table[msg_number];
@@ -10235,4 +10234,5 @@ void atcommand_defaults(void) {
atcommand->doload = atcommand_doload;
atcommand->base_commands = atcommand_basecommands;
atcommand->add = atcommand_add;
+ atcommand->msg = atcommand_msg;
}