diff options
Diffstat (limited to 'modules/commands/os_mode.cpp')
-rw-r--r-- | modules/commands/os_mode.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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); |