1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 00:33:12 +02:00

Backport of bugfix for bug #1064 from SVN r2188, original patch from DukePyrolator, fixes NS RECOVER so it doesn't display "(null)" in some places.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2189 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-03-23 00:46:53 +00:00
parent 66a9b8605f
commit 645c224ff7
2 changed files with 9 additions and 2 deletions
+7 -1
View File
@@ -124,9 +124,15 @@ int do_recover(User * u)
} else {
if (group_identified(u, na->nc)
|| (!(na->nc->flags & NI_SECURE) && is_on_access(u, na->nc))) {
char relstr[192];
notice_lang(s_NickServ, u2, FORCENICKCHANGE_NOW);
collide(na, 0);
notice_lang(s_NickServ, u, NICK_RECOVERED, s_NickServ, nick);
/* Convert NSReleaseTimeout second to string format */
duration(u2->na, relstr, sizeof(relstr), NSReleaseTimeout);
notice_lang(s_NickServ, u, NICK_RECOVERED, s_NickServ, nick, relstr);
} else {
notice_lang(s_NickServ, u, ACCESS_DENIED);
}