From f6e5e6a2b4dd3f5e6e9e5c152dd92fcd9bc440f2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 17 Dec 2022 12:24:32 +0000 Subject: Add sockaddrs::str to stringify a sockaddrs properly. Also clean up the socket code slightly. --- modules/m_proxyscan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/m_proxyscan.cpp b/modules/m_proxyscan.cpp index d29645cf5..379237de4 100644 --- a/modules/m_proxyscan.cpp +++ b/modules/m_proxyscan.cpp @@ -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) { -- cgit