diff options
author | Adam <Adam@anope.org> | 2010-12-29 23:24:44 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-29 23:24:44 -0500 |
commit | 58c2f0c4094319cef1a242770337cca6a610dcd3 (patch) | |
tree | bfec0c321449568a5b6abd89b2a401e3a4f52e77 | |
parent | 851c0a990ed99bf29ed00a553082f9c0a4707153 (diff) |
Fixed creating permanent channels on burst that have no botserv bot on IRCds without a perm channel mode
-rw-r--r-- | src/regchannel.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
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(); } |