summaryrefslogtreecommitdiff
path: root/src/modules
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 /src/modules
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 'src/modules')
-rw-r--r--src/modules/m_customtitle.cpp2
-rw-r--r--src/modules/m_vhost.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index 015353086..b0c9fad21 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -48,7 +48,7 @@ class CommandTitle : public Command
std::string title = i->second->getString("title");
std::string vhost = i->second->getString("vhost");
- if (Name == parameters[0] && !ServerInstance->PassCompare(user, pass, parameters[1], hash) &&
+ if (Name == parameters[0] && ServerInstance->PassCompare(user, pass, parameters[1], hash) &&
InspIRCd::MatchMask(host, userHost, userIP) && !title.empty())
{
ctitle.set(user, title);
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())
{