diff options
Diffstat (limited to 'src/core/cs_set.c')
-rw-r--r-- | src/core/cs_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c index 96c8ae35c..74a1590f0 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -511,7 +511,7 @@ class CommandCSSet : public Command /* Channel doesn't exist, create it internally */ if (!ci->c) { - chan_create(ci->name, time(NULL)); + new Channel(ci->name); if (ci->bi) bot_join(ci); } @@ -553,7 +553,7 @@ class CommandCSSet : public Command if (s_BotServ && ci->bi && ci->c->usercount == BSMinUsers - 1) ircdproto->SendPart(ci->bi, ci->c->name, NULL); if (!ci->c->users) - chan_delete(ci->c); + delete ci->c; /* No channel mode, no BotServ, but using ChanServ as the botserv bot * which was assigned when persist was set on |