1
0
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:
Adam-
2010-05-25 18:23:33 +00:00
parent 7f4afc22fa
commit a36e536a4d
+1 -1
View File
@@ -26,7 +26,7 @@ class CommandNSGhost : 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 = findnick(nick);
if (!finduser(nick))