From 5e62e8f22e94c975159e1800732cb2740c18d50b Mon Sep 17 00:00:00 2001 From: DukePyrolator Date: Sat, 9 Jan 2010 08:49:00 +0000 Subject: changed all password fields to std::string and reworked the way how the enc modules handle the passwords git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2740 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_release.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/ns_release.c') diff --git a/src/core/ns_release.c b/src/core/ns_release.c index c5f33cf65..d63e24e15 100644 --- a/src/core/ns_release.c +++ b/src/core/ns_release.c @@ -26,7 +26,7 @@ class CommandNSRelease : public Command CommandReturn Execute(User *u, const std::vector ¶ms) { const char *nick = params[0].c_str(); - const char *pass = params.size() > 1 ? params[1].c_str() : NULL; + std::string pass = params.size() > 1 ? params[1].c_str() : ""; NickAlias *na; if (!(na = findnick(nick))) @@ -37,7 +37,7 @@ class CommandNSRelease : public Command notice_lang(Config.s_NickServ, u, NICK_X_SUSPENDED, na->nick); else if (!(na->HasFlag(NS_KILL_HELD))) notice_lang(Config.s_NickServ, u, NICK_RELEASE_NOT_HELD, nick); - else if (pass) + else if (!pass.empty()) { int res = enc_check_password(pass, na->nc->pass); if (res == 1) -- cgit