partyline: Send the user list on forced rejoin

When a client tries to part from a channel to which it was fixed, we sent it a
join again to make it rejoin (bad irssi for not waiting for the server's reply
to PART!).

The problem here was that we didn't send the nicklist and thus the channel
appeared empty. This fixes SF.net #2802684.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1731 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-02-03 16:47:48 +00:00
parent c46616376a
commit 4fe56b2472
+5
View File
@@ -313,6 +313,11 @@ public:
} else {
// some clients dont wait for the server to send an answer to a part, so we need to make them join again
pUser->PutUser(":" + pUser->GetIRCNick().GetNickMask() + " JOIN " + pChannel->GetName());
if (!pChannel->GetTopic().empty()) {
pUser->PutUser(":" + GetIRCServer(pUser) + " 332 " + pUser->GetIRCNick().GetNickMask() + " " + pChannel->GetName() + " :" + pChannel->GetTopic());
}
const set<CString>& ssNicks = pChannel->GetNicks();
SendNickList(pUser, ssNicks, pChannel->GetName());
}
}