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:
@@ -26,7 +26,7 @@ class CommandNSRecover : public Command
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
{
|
||||
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
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user