diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-11 06:03:25 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-11 06:03:25 +0000 |
commit | b9190ebc16253254cb649faae76119eec3e14b8e (patch) | |
tree | e1cc12269825f020a14877be1ecfbfa959781710 /src/core/cs_set.c | |
parent | 86e43f1f144cfd04b039a844959af1f7aec3e6da (diff) |
Moved alot of stuff to constructors and destructors, instead of having functions everywhere to create and destroy objects
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2639 5417fbe8-f217-4b02-8779-1006273d7864
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 |