diff options
| author | 2024-08-18 16:04:36 +0100 | |
|---|---|---|
| committer | 2024-08-18 16:19:12 +0100 | |
| commit | d95be0a5165cf3cee3d1feedab1bdbdf21e5e419 (patch) | |
| tree | 20cdde19d3319c1423e63e37e5b26da6d5dad61b /src/modules/m_gateway.cpp | |
| parent | Document Write* members in the User type correctly. (diff) | |
Add a formatting overload to {Membership,User}::Write(Remote)Notice.
Diffstat (limited to 'src/modules/m_gateway.cpp')
| -rw-r--r-- | src/modules/m_gateway.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp index c223254cc..8631b91a5 100644 --- a/src/modules/m_gateway.cpp +++ b/src/modules/m_gateway.cpp @@ -164,20 +164,20 @@ public: } uint32_t addr = sa.in4.sin_addr.s_addr; - user->WriteNotice(INSP_FORMAT("*** HEXIP: {} encodes to {:02x}{:02x}{:02x}{:02x}.", + user->WriteNotice("*** HEXIP: {} encodes to {:02x}{:02x}{:02x}{:02x}.", sa.addr(), (addr & 0xFF), ((addr >> 8) & 0xFF), ((addr >> 16) & 0xFF), - ((addr >> 24) & 0xFF))); + ((addr >> 24) & 0xFF)); return CmdResult::SUCCESS; } if (ParseIP(parameters[0], sa)) { - user->WriteNotice(INSP_FORMAT("*** HEXIP: {} decodes to {}.", parameters[0], sa.addr())); + user->WriteNotice("*** HEXIP: {} decodes to {}.", parameters[0], sa.addr()); return CmdResult::SUCCESS; } - user->WriteNotice(INSP_FORMAT("*** HEXIP: {} is not a valid raw or hex encoded IPv4 address.", - parameters[0])); + user->WriteNotice("*** HEXIP: {} is not a valid raw or hex encoded IPv4 address.", + parameters[0]); return CmdResult::FAILURE; } |
