diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2019-01-24 09:01:56 -0700 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-01-24 16:01:56 +0000 |
commit | d5b50d9ed107d6a8b9241a831c1dae713963b524 (patch) | |
tree | 37371ed3c1ca1234e7e75361800f6285f9abb1bc /include | |
parent | 2f35b78fbaadb8d9a6c47ffc198bd97f91af3306 (diff) |
Add the reason to xline removal notices. (#1545)
Show the reason in manual xline removal SNOTICEs, just like
expiry SNOTICEs do.
This modifies XLineManager::DelLine() to require another string
reference passed to it.
Requested by @Robby-.
Diffstat (limited to 'include')
-rw-r--r-- | include/xline.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xline.h b/include/xline.h index dbb89277b..f593c1c97 100644 --- a/include/xline.h +++ b/include/xline.h @@ -467,11 +467,12 @@ class CoreExport XLineManager /** Delete an XLine * @param hostmask The xline-specific string identifying the line, e.g. "*@foo" * @param type The type of xline + * @param reason The xline reason, if it is being removed successfully * @param user The user removing the line or NULL if its the local server * @param simulate If this is true, don't actually remove the line, just return * @return True if the line was deleted successfully */ - bool DelLine(const char* hostmask, const std::string &type, User* user, bool simulate = false); + bool DelLine(const char* hostmask, const std::string& type, std::string& reason, User* user, bool simulate = false); /** Registers an xline factory. * An xline factory is a class which when given a particular xline type, |