diff options
author | Haru <haru@dotalux.com> | 2018-06-25 20:40:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 20:40:00 +0200 |
commit | 9694bd186896b75ba74f86e6d6c169d0ee97062c (patch) | |
tree | a13ac81dc8dbd00428aadb791440fb2316f95f0a /src | |
parent | 9b0ab441ebc1a69df627c4b665f02ab28d995020 (diff) | |
parent | a69f1ef5d09b66abdc8e9fe20c197414175b6b27 (diff) | |
download | hercules-9694bd186896b75ba74f86e6d6c169d0ee97062c.tar.gz hercules-9694bd186896b75ba74f86e6d6c169d0ee97062c.tar.bz2 hercules-9694bd186896b75ba74f86e6d6c169d0ee97062c.tar.xz hercules-9694bd186896b75ba74f86e6d6c169d0ee97062c.zip |
Merge pull request #2075 from guilherme-gm/rodex-script
Fixed rodex_sendmail_acc script command and rodex examples
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 39552a441..8a3744f27 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -23882,7 +23882,7 @@ bool rodex_sendmail_sub(struct script_state* st, struct rodex_message *msg) { const char *sender_name, *title, *body; - if (!strcmp(script->getfuncname(st), "rodex_sendmail_acc2")) + if (strcmp(script->getfuncname(st), "rodex_sendmail_acc") == 0 || strcmp(script->getfuncname(st), "rodex_sendmail_acc2") == 0) msg->receiver_accountid = script_getnum(st, 2); else msg->receiver_id = script_getnum(st, 2); |