Send correct away status on client login

If some client now sets "us" away via /away, new clients will be sent a 306
numeric after login to inform them that they are set /away.

Thanks to nobswolf for the suggestion.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1655 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-11-07 14:54:45 +00:00
parent aea6c40a0e
commit ff4e09c594
3 changed files with 16 additions and 0 deletions
+6
View File
@@ -193,6 +193,12 @@ void CIRCSock::ReadLine(const CString& sData) {
}
break;
}
case 305:
m_pUser->SetIRCAway(false);
break;
case 306:
m_pUser->SetIRCAway(true);
break;
case 331: {
// :irc.server.com 331 yournick #chan :No topic is set.
CChan* pChan = m_pUser->FindChan(sLine.Token(3));