summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2014-01-18 04:53:52 +0000
committerAttila Molnar <attilamolnar@hush.com>2014-01-25 12:20:04 +0100
commit074727e7a74f8dcef6c250faf6a757f0274d27db (patch)
treead38267d13fd59936770ee2b20e018b57d56852e /include
parent48869b38e938de4d8dd4cdff486b10348e81f7b6 (diff)
Convert InspIRCd::PassCompare to return bool instead of int.
The insane behaviour of this method was due to an implementation detail which has since become irrelevent.
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 897ae9e18..6f9163ad8 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -610,9 +610,9 @@ class CoreExport InspIRCd
* @param data The data from the config file
* @param input The data input by the oper
* @param hashtype The hash from the config file
- * @return 0 if the strings match, 1 or -1 if they do not
+ * @return True if the strings match, false if they do not
*/
- int PassCompare(Extensible* ex, const std::string &data, const std::string &input, const std::string &hashtype);
+ bool PassCompare(Extensible* ex, const std::string& data, const std::string& input, const std::string& hashtype);
/** Returns the full version string of this ircd
* @return The version string