diff options
author | Hercules.ws <Hercules@efficiently.awesome> | 2014-02-27 00:57:53 +0100 |
---|---|---|
committer | HerculesWSAPI <Hercules@efficiently.awesome> | 2014-02-27 00:57:53 +0100 |
commit | c5030d3869c8f469c97e0521778ebb93196149fa (patch) | |
tree | a70fa2aed9e5a1169335b74a8175df44336fceb3 /src/plugins/HPMHooking | |
parent | 87b6c8f196897b72d98de2b1d4716bee1af99c3b (diff) | |
download | hercules-c5030d3869c8f469c97e0521778ebb93196149fa.tar.gz hercules-c5030d3869c8f469c97e0521778ebb93196149fa.tar.bz2 hercules-c5030d3869c8f469c97e0521778ebb93196149fa.tar.xz hercules-c5030d3869c8f469c97e0521778ebb93196149fa.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.Hooks.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc index 9e62546d0..90f70e90a 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc @@ -210,14 +210,14 @@ AtCommandInfo* HP_atcommand_exists(const char *name) { } return retVal___; } -bool HP_atcommand_msg_read(const char *cfgName) { +bool HP_atcommand_msg_read(const char *cfg_name, bool allow_override) { int hIndex = 0; bool retVal___ = false; if( HPMHooks.count.HP_atcommand_msg_read_pre ) { - bool (*preHookFunc) (const char *cfgName); + bool (*preHookFunc) (const char *cfg_name, bool *allow_override); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msg_read_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_atcommand_msg_read_pre[hIndex].func; - retVal___ = preHookFunc(cfgName); + retVal___ = preHookFunc(cfg_name, &allow_override); } if( *HPMforce_return ) { *HPMforce_return = false; @@ -225,13 +225,13 @@ bool HP_atcommand_msg_read(const char *cfgName) { } } { - retVal___ = HPMHooks.source.atcommand.msg_read(cfgName); + retVal___ = HPMHooks.source.atcommand.msg_read(cfg_name, allow_override); } if( HPMHooks.count.HP_atcommand_msg_read_post ) { - bool (*postHookFunc) (bool retVal___, const char *cfgName); + bool (*postHookFunc) (bool retVal___, const char *cfg_name, bool *allow_override); for(hIndex = 0; hIndex < HPMHooks.count.HP_atcommand_msg_read_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_atcommand_msg_read_post[hIndex].func; - retVal___ = postHookFunc(retVal___, cfgName); + retVal___ = postHookFunc(retVal___, cfg_name, &allow_override); } } return retVal___; |