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:
psychon
2007-07-13 17:36:13 +00:00
parent c0e3f3bb03
commit 6197dbe4c7
+2 -2
View File
@@ -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, "!");