mirror of
https://github.com/anope/anope.git
synced 2026-07-04 09:43:13 +02:00
Add sockaddrs::str to stringify a sockaddrs properly.
Also clean up the socket code slightly.
This commit is contained in:
@@ -87,7 +87,7 @@ class ProxyConnect : public ConnectionSocket
|
||||
reason = reason.replace_all_cs("%p", stringify(this->conaddr.port()));
|
||||
|
||||
BotInfo *OperServ = Config->GetClient("OperServ");
|
||||
Log(OperServ) << "PROXYSCAN: Open " << this->GetType() << " proxy found on " << this->conaddr.addr() << ":" << this->conaddr.port() << " (" << reason << ")";
|
||||
Log(OperServ) << "PROXYSCAN: Open " << this->GetType() << " proxy found on " << this->conaddr.str() << " (" << reason << ")";
|
||||
XLine *x = new XLine("*@" + this->conaddr.addr(), OperServ ? OperServ->nick : "", Anope::CurTime + this->proxy.duration, reason, XLineManager::GenerateUID());
|
||||
if (add_to_akill && akills)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user