summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-25 18:23:33 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-25 18:23:33 +0000
commita36e536a4d5f3e25c50331d3d85cc7ea105eb25e (patch)
tree2e7d8554da37d8592a6b255bf3b7ae08c24be132
parent7f4afc22fac7d30dbc093e59b6122e871bcf6dac (diff)
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
-rw-r--r--src/core/ns_ghost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ns_ghost.c b/src/core/ns_ghost.c
index 72b02efae..28609b2d3 100644
--- a/src/core/ns_ghost.c
+++ b/src/core/ns_ghost.c
@@ -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))