summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regchannel.cpp8
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);