From 1730bfb2bc2a664f6b555152c1251384669ee661 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 30 Oct 2012 21:22:10 -0400 Subject: Send uids everywhere when setting modes on clients --- modules/commands/os_mode.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_mode.cpp') diff --git a/modules/commands/os_mode.cpp b/modules/commands/os_mode.cpp index 67ef1c8d4..a0195d497 100644 --- a/modules/commands/os_mode.cpp +++ b/modules/commands/os_mode.cpp @@ -61,23 +61,26 @@ class CommandOSMode : public Command if (!cm) continue; - Anope::string param; + Anope::string param, param_log; if (cm->Type != MODE_REGULAR) { if (!sep.GetToken(param)) continue; + param_log = param; + if (cm->Type == MODE_STATUS) { User *targ = finduser(param); if (targ == NULL || c->FindUser(targ) == NULL) continue; + param = targ->GetUID(); } } log_modes += cm->ModeChar; if (!param.empty()) - log_params += " " + param; + log_params += " " + param_log; if (add) c->SetMode(source.service, cm, param, false); -- cgit