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

Fixed crash on /ns release and made release actually work

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2891 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-04-13 18:37:35 +00:00
parent a53719d91e
commit 12a4aa4dba
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class CommandNSRecover : public Command
CommandReturn Execute(User *u, const std::vector<ci::string> &params)
{
const char *nick = params[0].c_str();
std::string pass = params.size() > 1 ? params[1].c_str() : NULL;
std::string pass = params.size() > 1 ? params[1].c_str() : "";
NickAlias *na;
User *u2;
+1 -3
View File
@@ -363,11 +363,9 @@ void cancel_user(User * u)
ircdproto->SendSVSKill(findbot(Config.s_NickServ), u, "Please do not use a registered nickname without identifying");
}
na->SetFlag(NS_KILL_HELD);
na->UnsetFlag(NS_GUESTED);
}
na->UnsetFlag(NS_KILL_HELD);
na->UnsetFlag(NS_GUESTED);
NickServCollide::ClearTimers(na);
}
}