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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user