mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Fix some ICC warnings found by Kuja
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@846 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -738,7 +738,7 @@ bool CIRCSock::OnPrivCTCP(CNick& Nick, CString& sMessage) {
|
||||
}
|
||||
} else if (sType.CaseCmp("RESUME") == 0) {
|
||||
// Need to lookup the connection by port, filter the port, and forward to the user
|
||||
CDCCBounce* pSock = (CDCCBounce*) CZNC::Get().GetManager().FindSockByLocalPort(atoi(sMessage.Token(3).c_str()));
|
||||
CDCCBounce* pSock = (CDCCBounce*) CZNC::Get().GetManager().FindSockByLocalPort(sMessage.Token(3).ToUShort());
|
||||
|
||||
if ((pSock) && (strncasecmp(pSock->GetSockName().c_str(), "DCC::", 5) == 0)) {
|
||||
m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + "\001");
|
||||
|
||||
Reference in New Issue
Block a user