summaryrefslogtreecommitdiff
path: root/modules/commands/ns_getpass.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-27 15:54:21 -0400
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commitb319fb089c144312ab9141d6f6469d50d9d7a1ea (patch)
treeb6da2ec3a23ff7f2da9ae6ce35d591faa6f57d72 /modules/commands/ns_getpass.cpp
parent17196887ad1e6f9886c6cd3109bd8ede16ae7343 (diff)
Fix compile warnings and errors found by clang
Diffstat (limited to 'modules/commands/ns_getpass.cpp')
-rw-r--r--modules/commands/ns_getpass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_getpass.cpp b/modules/commands/ns_getpass.cpp
index cb320ad76..1d2bef754 100644
--- a/modules/commands/ns_getpass.cpp
+++ b/modules/commands/ns_getpass.cpp
@@ -65,7 +65,7 @@ class NSGetPass : public Module
{
Anope::string tmp_pass = "plain:tmp";
- if (Anope::Decrypt(tmp_pass, tmp_pass) == -1)
+ if (!Anope::Decrypt(tmp_pass, tmp_pass))
throw ModuleException("Incompatible with the encryption module being used");
}