diff options
| author | Adam <Adam@anope.org> | 2010-08-27 20:56:28 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-08-27 20:56:28 -0400 |
| commit | c2ddecc2b1dbc9d055166bdf296da2e4536f74f6 (patch) | |
| tree | 9b98582630a2debab628e23d4d796885f50ada74 /src/regchannel.cpp | |
| parent | 73fb94c55344b6ad788c925bf13325236402891f (diff) | |
Added a new logging system
Diffstat (limited to 'src/regchannel.cpp')
| -rw-r--r-- | src/regchannel.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 393054acf..f22d3388f 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -24,7 +24,9 @@ ChannelInfo::ChannelInfo(const Anope::string &chname) this->founder = this->successor = NULL; this->last_topic_time = 0; this->levels = NULL; - this->c = NULL; + this->c = findchan(chname); + if (this->c) + this->c->ci = this; this->capsmin = this->capspercent = 0; this->floodlines = this->floodsecs = 0; this->repeattimes = 0; @@ -68,7 +70,7 @@ ChannelInfo::~ChannelInfo() FOREACH_MOD(I_OnDelChan, OnDelChan(this)); - Alog(LOG_DEBUG) << "Deleting channel " << this->name; + Log(LOG_DEBUG) << "Deleting channel " << this->name; if (this->c) { @@ -575,7 +577,7 @@ bool ChannelInfo::CheckKick(User *user) if ((autokick->HasFlag(AK_ISNICK) && autokick->nc == nc) || (!autokick->HasFlag(AK_ISNICK) && match_usermask(autokick->mask, user))) { - Alog(LOG_DEBUG_2) << user->nick << " matched akick " << (autokick->HasFlag(AK_ISNICK) ? autokick->nc->display : autokick->mask); + Log(LOG_DEBUG_2) << user->nick << " matched akick " << (autokick->HasFlag(AK_ISNICK) ? autokick->nc->display : autokick->mask); autokick->last_used = time(NULL); if (autokick->HasFlag(AK_ISNICK)) get_idealban(this, user, mask); @@ -598,7 +600,7 @@ bool ChannelInfo::CheckKick(User *user) if (!do_kick) return false; - Alog(LOG_DEBUG) << "Autokicking "<< user->GetMask() << " from " << this->name; + Log(LOG_DEBUG) << "Autokicking "<< user->GetMask() << " from " << this->name; /* If the channel isn't syncing and doesn't have any users, join ChanServ * Note that the user AND POSSIBLY the botserv bot exist here |
