From 03cc9eb5c597e37239debac25a7ed6ad4f4d9411 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 29 Dec 2010 23:30:28 -0500 Subject: Assign bots to new empty permanent channels on IRCds without permchannel mode not just join --- src/regchannel.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/regchannel.cpp b/src/regchannel.cpp index 0b67daf9a..7ff3e753a 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -571,11 +571,9 @@ void ChannelInfo::LoadMLock() else { if (!this->bi) - { - this->bi = whosends(this); - ++this->bi->chancount; - } - this->bi->Join(this->c); + whosends(this)->Assign(NULL, this); + if (this->c->FindUser(this->bi) == NULL) + this->bi->Join(this->c); } check_modes(this->c); -- cgit