summaryrefslogtreecommitdiff
path: root/modules/commands/os_mode.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-30 21:22:10 -0400
committerAdam <Adam@anope.org>2012-10-30 21:22:10 -0400
commit1730bfb2bc2a664f6b555152c1251384669ee661 (patch)
treee6f1f8a9a5d18ef5afe28beb841e6fb298c8b349 /modules/commands/os_mode.cpp
parent26a4a13cdff2933b77da986ccc38f3538beaaea7 (diff)
Send uids everywhere when setting modes on clients
Diffstat (limited to 'modules/commands/os_mode.cpp')
-rw-r--r--modules/commands/os_mode.cpp7
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);