From 9aeb773169086562753160eaa0a5173eb278cd13 Mon Sep 17 00:00:00 2001 From: xcps Date: Fri, 4 Mar 2016 19:26:28 +0500 Subject: [PATCH] variable name --- I2PTunnel.cpp | 6 +++--- I2PTunnel.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index b5aa8e57..ad06328b 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -238,14 +238,14 @@ namespace client std::shared_ptr socket, const boost::asio::ip::tcp::endpoint& target, const std::string& webircpass): I2PTunnelConnection (owner, stream, socket, target), m_From (stream->GetRemoteIdentity ()), - m_isWebIrced (webircpass.length() ? false : true), m_WebircPass (webircpass) + m_NeedsWebIrc (webircpass.length() ? true : false), m_WebircPass (webircpass) { } void I2PTunnelConnectionIRC::Write (const uint8_t * buf, size_t len) { - if (!m_isWebIrced) { - m_isWebIrced = true; + if (m_NeedsWebIrc) { + m_NeedsWebIrc = false; m_OutPacket.str (""); m_OutPacket << "WEBIRC " << this->m_WebircPass << " cgiirc " << context.GetAddressBook ().ToAddress (m_From->GetIdentHash ()) << " 127.0.0.1\n"; I2PTunnelConnection::Write ((uint8_t *)m_OutPacket.str ().c_str (), m_OutPacket.str ().length ()); diff --git a/I2PTunnel.h b/I2PTunnel.h index f29ad8da..3cbd618f 100644 --- a/I2PTunnel.h +++ b/I2PTunnel.h @@ -97,7 +97,7 @@ namespace client std::string m_WebircPass; std::shared_ptr m_From; std::stringstream m_OutPacket, m_InPacket; - bool m_isWebIrced; + bool m_NeedsWebIrc; };