diff options
| author | Sadie Powell <sadie@witchery.services> | 2022-12-17 12:24:32 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2022-12-17 12:39:48 +0000 |
| commit | f6e5e6a2b4dd3f5e6e9e5c152dd92fcd9bc440f2 (patch) | |
| tree | b61984b694e0d89f3c627e3fdeba502f8d048389 /modules | |
| parent | dfdcd3021a482182827ba00782acd5a53442d21a (diff) | |
Add sockaddrs::str to stringify a sockaddrs properly.
Also clean up the socket code slightly.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/m_proxyscan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
