From d95be0a5165cf3cee3d1feedab1bdbdf21e5e419 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Aug 2024 16:04:36 +0100 Subject: Add a formatting overload to {Membership,User}::Write(Remote)Notice. --- src/modules/m_gateway.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_gateway.cpp') 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; } -- cgit v1.3.1-10-gc9f91