mirror of
https://github.com/znc/znc.git
synced 2026-07-03 00:11:59 +02:00
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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user