diff options
author | Peter Powell <petpow@saberuk.com> | 2018-09-11 09:03:47 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-09-11 09:03:47 +0100 |
commit | 7e9ec8e49060024033efe55342c933b86288e31c (patch) | |
tree | aa39a4fb8319382ac492e168525a18bebae2f732 /include | |
parent | 923d811b0564db891d7cb97c1ea81a5c901ff3a5 (diff) |
Amend OnPostCommand to specify whether the command is loopcalled.
This restores previous behaviour which was lost when the original
line parameter was removed.
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 3cd0179d2..db0bc341e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -717,8 +717,9 @@ class CoreExport Module : public classbase, public usecountbase * @param parameters An array of array of characters containing the parameters for the command * @param user the user issuing the command * @param result The return code given by the command handler, one of CMD_SUCCESS or CMD_FAILURE + * @param loop Whether the command is being called from LoopCall or directly. */ - virtual void OnPostCommand(Command* command, const CommandBase::Params& parameters, LocalUser* user, CmdResult result); + virtual void OnPostCommand(Command* command, const CommandBase::Params& parameters, LocalUser* user, CmdResult result, bool loop); /** Called when a user is first connecting, prior to starting DNS lookups, checking initial * connect class, or accepting any commands. |