1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 01:16:37 +02:00

Made ChanServ optional

This commit is contained in:
Adam
2010-10-02 14:14:00 -04:00
parent 0a8bb88085
commit b0070bbd3b
6 changed files with 43 additions and 32 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ void ChannelInfo::LoadMLock()
if (this->HasFlag(CI_PERSIST) && !this->c)
{
this->c = new Channel(this->name, this->time_registered);
if (!this->bi && ModeManager::FindChannelModeByName(CMODE_PERM) == NULL)
if (!this->bi && ChanServ && ModeManager::FindChannelModeByName(CMODE_PERM) == NULL)
ChanServ->Assign(NULL, this);
else if (this->bi)
this->bi->Join(c);