aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-20 15:58:54 +0100
committerGravatar Sadie Powell2021-08-20 16:31:47 +0100
commitb1cb8ef3a4a892b4f3d470d0e2380d4cc07d2a44 (patch)
tree21d721b0b4a49ed4dcac19cbc098d51406359ab9 /src/users.cpp
parentRefer to oper names in core_oper as "username" not "login". (diff)
Avoid duplicating User::MakeHostIP.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
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<OperInfo> 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);