Permalink
Browse files

Make schat use DCCBindHost

  • Loading branch information...
1 parent c635cae commit d71da02a81d819a01e6ed40f0e28ea0b00fb7013 @kylef kylef committed May 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 modules/schat.cpp
View
6 modules/schat.cpp
@@ -170,7 +170,7 @@ class CSChat : public CModule
pSock->SetPemLocation(m_sPemFile);
u_short iPort = m_pManager->ListenRand(pSock->GetSockName() + "::LISTENER",
- m_pUser->GetLocalIP(), true, SOMAXCONN, pSock, 60);
+ m_pUser->GetLocalDCCIP(), true, SOMAXCONN, pSock, 60);
if (iPort == 0) {
PutModule("Failed to start chat!");
@@ -180,7 +180,7 @@ class CSChat : public CModule
stringstream s;
s << "PRIVMSG " << sArgs << " :\001";
s << "DCC SCHAT chat ";
- s << CUtils::GetLongIP(m_pUser->GetLocalIP());
+ s << CUtils::GetLongIP(m_pUser->GetLocalDCCIP());
s << " " << iPort << "\001";
PutIRC(s.str());
@@ -341,7 +341,7 @@ class CSChat : public CModule
{
CSChatSock *p = new CSChatSock(this, sNick, CUtils::GetIP(iIP), iPort, 60);
m_pManager->Connect(CUtils::GetIP(iIP), iPort, p->GetSockName(), 60,
- true, m_pUser->GetLocalIP(), p);
+ true, m_pUser->GetLocalDCCIP(), p);
RemTimer("Remove " + sNick); // delete any associated timer to this nick
}

0 comments on commit d71da02

Please sign in to comment.