diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-22 19:42:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-22 19:42:28 +0300 |
commit | 92ba7ee3b19bc4151d69700e9b1b5484298cbcbf (patch) | |
tree | cb8a4f08c81d73b284dc0efc30d2933b49365230 /src/map | |
parent | bf557fd270144c92f05f3e88e4d25dc9495d46d8 (diff) | |
download | evol-hercules-92ba7ee3b19bc4151d69700e9b1b5484298cbcbf.tar.gz evol-hercules-92ba7ee3b19bc4151d69700e9b1b5484298cbcbf.tar.bz2 evol-hercules-92ba7ee3b19bc4151d69700e9b1b5484298cbcbf.tar.xz evol-hercules-92ba7ee3b19bc4151d69700e9b1b5484298cbcbf.zip |
Fix translation server messages.
Allow send correct command to client for join irc channel if enabled.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 00ffb44..7f4c779 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -20,7 +20,23 @@ const char* eatcommand_msgsd(struct map_session_data *sd, int *msgPtr) { const int msg_number = *msgPtr; if (!(msg_number >= 0 && msg_number < MAX_MSG)) + { + hookStop(); return "??"; + } + if (*msgPtr == 1435) + { + hookStop(); + // service message, must be not translated + return "You're now in the '#%s' channel for '%s'"; + } + else if (*msgPtr == 1403) + { + hookStop(); + // service message, must be not translated + return "You're now in the '#%s' channel for '-'"; + } + hookStop(); return lang_pctrans(atcommand->msg_table[0][msg_number], sd); } @@ -30,6 +46,10 @@ const char* eatcommand_msgfd(int *fdPtr, int *msgPtr) const int fd = *fdPtr; struct map_session_data *sd = session_isValid(fd) ? session[fd]->session_data : NULL; if (!(msg_number >= 0 && msg_number < MAX_MSG)) + { + hookStop(); return "??"; + } + hookStop(); return lang_pctrans(atcommand->msg_table[0][msg_number], sd); } |