diff options
author | Adam <Adam@anope.org> | 2010-12-29 23:30:28 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-29 23:30:28 -0500 |
commit | 03cc9eb5c597e37239debac25a7ed6ad4f4d9411 (patch) | |
tree | 377e3b7b33b98f5ab3e54ec92aac167f8ab29e73 | |
parent | 72b8f4609b147b9b9a222c14bfc4ae100cc7f250 (diff) |
Assign bots to new empty permanent channels on IRCds without permchannel mode not just join
-rw-r--r-- | src/regchannel.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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); |