diff options
author | Haru <haru@dotalux.com> | 2019-09-23 01:09:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 01:09:00 +0200 |
commit | 7121899a562856863984ce90268e9af37769b346 (patch) | |
tree | 8f2c17a1ae78dad6a657866720523d1691f25daf /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | |
parent | ab1127c269daa390f1648f6e8615fe8c209d879e (diff) | |
parent | 20a1f4facea1dc58112b5d2609533dc554b0574b (diff) | |
download | hercules-7121899a562856863984ce90268e9af37769b346.tar.gz hercules-7121899a562856863984ce90268e9af37769b346.tar.bz2 hercules-7121899a562856863984ce90268e9af37769b346.tar.xz hercules-7121899a562856863984ce90268e9af37769b346.zip |
Merge pull request #2523 from MishimaHaruna/name-partial-match
Name partial match
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index c9bdefbd7..e519887c9 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -47651,15 +47651,15 @@ void HP_map_deliddb(struct block_list *bl) { } return; } -struct map_session_data* HP_map_nick2sd(const char *nick) { +struct map_session_data* HP_map_nick2sd(const char *nick, bool allow_partial) { int hIndex = 0; struct map_session_data* retVal___ = NULL; if (HPMHooks.count.HP_map_nick2sd_pre > 0) { - struct map_session_data* (*preHookFunc) (const char **nick); + struct map_session_data* (*preHookFunc) (const char **nick, bool *allow_partial); *HPMforce_return = false; for (hIndex = 0; hIndex < HPMHooks.count.HP_map_nick2sd_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_map_nick2sd_pre[hIndex].func; - retVal___ = preHookFunc(&nick); + retVal___ = preHookFunc(&nick, &allow_partial); } if (*HPMforce_return) { *HPMforce_return = false; @@ -47667,13 +47667,13 @@ struct map_session_data* HP_map_nick2sd(const char *nick) { } } { - retVal___ = HPMHooks.source.map.nick2sd(nick); + retVal___ = HPMHooks.source.map.nick2sd(nick, allow_partial); } if (HPMHooks.count.HP_map_nick2sd_post > 0) { - struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, const char *nick); + struct map_session_data* (*postHookFunc) (struct map_session_data* retVal___, const char *nick, bool allow_partial); for (hIndex = 0; hIndex < HPMHooks.count.HP_map_nick2sd_post; hIndex++) { postHookFunc = HPMHooks.list.HP_map_nick2sd_post[hIndex].func; - retVal___ = postHookFunc(retVal___, nick); + retVal___ = postHookFunc(retVal___, nick, allow_partial); } } return retVal___; |