Skip to content

Commit

Permalink
Fixed problem with NAWS where the client would always send NAWS data …
Browse files Browse the repository at this point in the history
…if requested
  • Loading branch information
nickgammon committed Apr 4, 2014
1 parent 70e578c commit f0890e2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions telnet_phases.cpp
Expand Up @@ -390,10 +390,14 @@ void CMUSHclientDoc::Phase_DO (const unsigned char c)

case TELOPT_NAWS:
// option off - must be server initiated
if (!m_bNAWS)
if (m_bNAWS)
{
Send_IAC_WILL (c);
m_bNAWS_wanted = true;
SendWindowSizes (m_nWrapColumn);
m_bNAWS_wanted = true;
SendWindowSizes (m_nWrapColumn);
}
else
Send_IAC_WONT (c);
break;

case TELOPT_MXP:
Expand Down

0 comments on commit f0890e2

Please sign in to comment.