diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-01-05 11:30:18 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-02-09 20:21:40 +0100 |
commit | e6a78bfd74f3feb87b31cc98dc3b16c4ab0ae0fb (patch) | |
tree | bc8db112f7b22b81f7ff8c49d1f57e0fa0d76c9c /src/map/atcommand.h | |
parent | e9914cef348c2388a2f9d8b02c9d8a8ff7a75ab5 (diff) | |
download | hercules-e6a78bfd74f3feb87b31cc98dc3b16c4ab0ae0fb.tar.gz hercules-e6a78bfd74f3feb87b31cc98dc3b16c4ab0ae0fb.tar.bz2 hercules-e6a78bfd74f3feb87b31cc98dc3b16c4ab0ae0fb.tar.xz hercules-e6a78bfd74f3feb87b31cc98dc3b16c4ab0ae0fb.zip |
Applied code style and added some minor code improvements to src/map/atcommands.c.
* Applied code style to touched @commands.
* Added file path validation where fopen() is used to make sure a TXT file is passed.
* Added new messages for file name validation to conf/messages.conf.
* increased MAX_MSG to be able to use the new messages.
Diffstat (limited to 'src/map/atcommand.h')
-rw-r--r-- | src/map/atcommand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.h b/src/map/atcommand.h index f3b1be51b..66827b3b2 100644 --- a/src/map/atcommand.h +++ b/src/map/atcommand.h @@ -41,7 +41,7 @@ struct config_setting_t; * Defines **/ #define ATCOMMAND_LENGTH 50 -#define MAX_MSG 1516 +#define MAX_MSG 1520 #define msg_txt(idx) atcommand->msg(idx) #define msg_sd(sd,msg_number) atcommand->msgsd((sd),(msg_number)) #define msg_fd(fd,msg_number) atcommand->msgfd((fd),(msg_number)) |