diff options
Diffstat (limited to 'src/core/ns_getpass.c')
-rw-r--r-- | src/core/ns_getpass.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |