mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Set the client's nick name to our IRC nick when it connects to ZNC
The assumption here is that clients parse raw 001 to get their actual nick. This worked before because nothing relied on CClient's idea of the users' nick. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1214 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
3
User.cpp
3
User.cpp
@@ -211,6 +211,9 @@ void CUser::UserConnected(CClient* pClient) {
|
||||
while (m_RawBuffer.GetLine(GetIRCNick().GetNick(), sLine, uIdx++)) {
|
||||
pClient->PutClient(sLine);
|
||||
}
|
||||
|
||||
// The assumption is that the client got this nick from the 001 reply
|
||||
pClient->SetNick(GetIRCNick().GetNick());
|
||||
}
|
||||
|
||||
// Send the cached MOTD
|
||||
|
||||
Reference in New Issue
Block a user