From 02f126c36e3460fecd23429f45f203f9a935b92c Mon Sep 17 00:00:00 2001 From: "viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 20 Sep 2008 14:45:38 +0000 Subject: BUILD : 1.7.22 (1446) BUGS : NOTES : Removed password truncating and fixed a crashbug in enc_none. This build still crashes on CS GETPASS on some systems though. Someone take a look at termination of ci->founderpass pls. git-svn-id: svn://svn.anope.org/anope/trunk@1446 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1160 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/ns_getpass.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/ns_getpass.c') diff --git a/src/core/ns_getpass.c b/src/core/ns_getpass.c index 8fc917306..d15f5d086 100644 --- a/src/core/ns_getpass.c +++ b/src/core/ns_getpass.c @@ -96,17 +96,17 @@ int do_getpass(User * u) } else if (NSRestrictGetPass && !is_services_root(u)) { notice_lang(s_NickServ, u, PERMISSION_DENIED); } else { - if(enc_decrypt(na->nc->pass,tmp_pass,PASSMAX)==1) { + if(enc_decrypt(na->nc->pass,tmp_pass,PASSMAX)==1) { alog("%s: %s!%s@%s used GETPASS on %s", s_NickServ, u->nick, u->username, u->host, nick); if (WallGetpass) anope_cmd_global(s_NickServ, "\2%s\2 used GETPASS on \2%s\2", u->nick, nick); notice_lang(s_NickServ, u, NICK_GETPASS_PASSWORD_IS, nick, - na->nc->pass); - } else { + tmp_pass); + } else { notice_lang(s_NickServ, u, NICK_GETPASS_UNAVAILABLE); - } + } } return MOD_CONT; } -- cgit