mirror of
https://github.com/anope/anope.git
synced 2026-06-27 16:46:39 +02:00
Fixed a crash if /ns ghost is used without a password
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2983 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ class CommandNSGhost : 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 = findnick(nick);
|
||||
|
||||
if (!finduser(nick))
|
||||
|
||||
Reference in New Issue
Block a user