mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Fix UHNAMES support
- messages from server werent parsed right (ident got messed up) - ZNC generated joins (/detach #chan /join #chan) never included the UHNAMES info. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@812 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -107,7 +107,7 @@ void CChan::JoinUser(bool bForce, const CString& sKey, CClient* pClient) {
|
||||
sPerm += c;
|
||||
}
|
||||
}
|
||||
if(pThisClient->HasUHNames() && !a->second->GetIdent().empty() && a->second->GetHost().empty()) {
|
||||
if(pThisClient->HasUHNames() && !a->second->GetIdent().empty() && !a->second->GetHost().empty()) {
|
||||
sNick = a->first + "!" + a->second->GetIdent() + "@" + a->second->GetHost();
|
||||
} else {
|
||||
sNick = a->first;
|
||||
@@ -425,7 +425,7 @@ bool CChan::AddNick(const CString& sNick) {
|
||||
}
|
||||
|
||||
sTmp = p;
|
||||
sIdent = sTmp.Token(1, true, "!").Token(0, true, "@");
|
||||
sIdent = sTmp.Token(1, true, "!").Token(0, false, "@");
|
||||
sHost = sTmp.Token(1, true, "@");
|
||||
sTmp = sTmp.Token(0, false, "!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user