summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-13 15:21:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-14 20:23:24 +0300
commit7dd7498f8ce94aa1392c02da527096182bf533a0 (patch)
tree61dd6dc1d5bda4a77623910be1cf4d6f396511a6 /src/map/atcommand.c
parent7b55511e79318e0b47b6a5dd3d6e309f9df2eb5e (diff)
downloadhercules-7dd7498f8ce94aa1392c02da527096182bf533a0.tar.gz
hercules-7dd7498f8ce94aa1392c02da527096182bf533a0.tar.bz2
hercules-7dd7498f8ce94aa1392c02da527096182bf533a0.tar.xz
hercules-7dd7498f8ce94aa1392c02da527096182bf533a0.zip
Add missing checks into channel.c
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index dceb8716a..190b2179a 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -8765,7 +8765,7 @@ ACMD(channel) {
if (strcmpi(subcmd,"create") == 0 && (channel->config->allow_user_channel_creation || pc_has_permission(sd, PC_PERM_HCHSYS_ADMIN))) {
// sub1 = channel name; sub2 = password; sub3 = unused
size_t len = strlen(sub1);
- const char *pass = *sub2 ? sub2 : NULL;
+ const char *pass = *sub2 ? sub2 : "";
if (sub1[0] != '#') {
clif->message(fd, msg_fd(fd,1405));// Channel name must start with a '#'
return false;