From 58c2f0c4094319cef1a242770337cca6a610dcd3 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 29 Dec 2010 23:24:44 -0500 Subject: Fixed creating permanent channels on burst that have no botserv bot on IRCds without a perm channel mode --- src/regchannel.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regchannel.cpp b/src/regchannel.cpp index b4cded05b..3279a80a3 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -400,8 +400,13 @@ void ChannelInfo::LoadMLock() this->c = new Channel(this->name, this->time_registered); if (!this->bi && ChanServ && ModeManager::FindChannelModeByName(CMODE_PERM) == NULL) ChanServ->Assign(NULL, this); - else if (this->bi) - this->bi->Join(c); + else + { + if (!this->bi) + whosends(this)->Assign(NULL, this); + if (this->c->FindUser(this->bi) == NULL) + this->bi->Join(this->c); + } check_modes(this->c); this->CheckTopic(); } -- cgit