From b1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 20 Aug 2021 15:58:54 +0100 Subject: Avoid duplicating User::MakeHostIP. --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 8641c0d45..5110d600e 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -393,8 +393,8 @@ void User::Oper(std::shared_ptr info) if (info->oper_block) opername = info->oper_block->getString("name"); - ServerInstance->SNO.WriteToSnoMask('o', "%s (%s@%s) is now a server operator of type %s (using oper '%s')", - nick.c_str(), ident.c_str(), GetRealHost().c_str(), oper->name.c_str(), opername.c_str()); + ServerInstance->SNO.WriteToSnoMask('o', "%s (%s) is now a server operator of type %s (using oper '%s')", + nick.c_str(), MakeHost().c_str(), oper->name.c_str(), opername.c_str()); this->WriteNumeric(RPL_YOUAREOPER, InspIRCd::Format("You are now %s %s", strchr("aeiouAEIOU", oper->name[0]) ? "an" : "a", oper->name.c_str())); ServerInstance->Users.all_opers.push_back(this); -- cgit v1.3.1-10-gc9f91