diff options
Diffstat (limited to 'modules/commands/cs_updown.cpp')
-rw-r--r-- | modules/commands/cs_updown.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/cs_updown.cpp b/modules/commands/cs_updown.cpp index da272835f..11b2f4749 100644 --- a/modules/commands/cs_updown.cpp +++ b/modules/commands/cs_updown.cpp @@ -39,7 +39,7 @@ class CommandCSUp : public Command if (c == NULL) source.Reply(CHAN_X_NOT_IN_USE, channel.c_str()); - else if (c->ci == NULL) + else if (!c->ci) source.Reply(CHAN_X_NOT_REGISTERED, channel.c_str()); else chan_set_correct_modes(u, c, 1); @@ -94,7 +94,7 @@ class CommandCSDown : public Command if (c == NULL) source.Reply(CHAN_X_NOT_IN_USE, channel.c_str()); - else if (c->ci == NULL) + else if (!c->ci) source.Reply(CHAN_X_NOT_REGISTERED, channel.c_str()); else RemoveAll(u, c); |