diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-05-25 18:23:33 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-05-25 18:23:33 +0000 |
commit | a36e536a4d5f3e25c50331d3d85cc7ea105eb25e (patch) | |
tree | 2e7d8554da37d8592a6b255bf3b7ae08c24be132 | |
parent | 7f4afc22fac7d30dbc093e59b6122e871bcf6dac (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.c | 2 |
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> ¶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)) |