mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
variable name
This commit is contained in:
parent
091c13ff41
commit
9aeb773169
@ -238,14 +238,14 @@ namespace client
|
|||||||
std::shared_ptr<boost::asio::ip::tcp::socket> socket,
|
std::shared_ptr<boost::asio::ip::tcp::socket> socket,
|
||||||
const boost::asio::ip::tcp::endpoint& target, const std::string& webircpass):
|
const boost::asio::ip::tcp::endpoint& target, const std::string& webircpass):
|
||||||
I2PTunnelConnection (owner, stream, socket, target), m_From (stream->GetRemoteIdentity ()),
|
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)
|
void I2PTunnelConnectionIRC::Write (const uint8_t * buf, size_t len)
|
||||||
{
|
{
|
||||||
if (!m_isWebIrced) {
|
if (m_NeedsWebIrc) {
|
||||||
m_isWebIrced = true;
|
m_NeedsWebIrc = false;
|
||||||
m_OutPacket.str ("");
|
m_OutPacket.str ("");
|
||||||
m_OutPacket << "WEBIRC " << this->m_WebircPass << " cgiirc " << context.GetAddressBook ().ToAddress (m_From->GetIdentHash ()) << " 127.0.0.1\n";
|
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 ());
|
I2PTunnelConnection::Write ((uint8_t *)m_OutPacket.str ().c_str (), m_OutPacket.str ().length ());
|
||||||
|
@ -97,7 +97,7 @@ namespace client
|
|||||||
std::string m_WebircPass;
|
std::string m_WebircPass;
|
||||||
std::shared_ptr<const i2p::data::IdentityEx> m_From;
|
std::shared_ptr<const i2p::data::IdentityEx> m_From;
|
||||||
std::stringstream m_OutPacket, m_InPacket;
|
std::stringstream m_OutPacket, m_InPacket;
|
||||||
bool m_isWebIrced;
|
bool m_NeedsWebIrc;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user