From 074727e7a74f8dcef6c250faf6a757f0274d27db Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 18 Jan 2014 04:53:52 +0000 Subject: 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. --- src/modules/m_vhost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_vhost.cpp') diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index 2e25849ae..227d9426e 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -43,7 +43,7 @@ class CommandVhost : public Command std::string pass = tag->getString("pass"); std::string hash = tag->getString("hash"); - if (parameters[0] == username && !ServerInstance->PassCompare(user, pass, parameters[1], hash)) + if (parameters[0] == username && ServerInstance->PassCompare(user, pass, parameters[1], hash)) { if (!mask.empty()) { -- cgit v1.3.1-10-gc9f91