diff options
author | Robby- <robby@chat.be> | 2014-08-11 20:16:42 +0200 |
---|---|---|
committer | Robby- <robby@chat.be> | 2014-08-11 20:16:42 +0200 |
commit | d417241a5b87e1e717755aa851ba0977857db873 (patch) | |
tree | d0b7ee46ef9cca9384fdae683c27aef463dddcdc /modules/commands/cs_set.cpp | |
parent | e5cb2018e578c0b84858d05d6aa3dae31b905f02 (diff) |
cs_set: Fix logging for SET SUCCESSOR to correctly log overrides.
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r-- | modules/commands/cs_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp index 77e1d1fd5..afd2c3547 100644 --- a/modules/commands/cs_set.cpp +++ b/modules/commands/cs_set.cpp @@ -1010,7 +1010,7 @@ class CommandCSSetSuccessor : public Command else nc = NULL; - Log(!source.permission.empty() ? LOG_ADMIN : LOG_COMMAND, source, this, ci) << "to change the successor from " << (ci->GetSuccessor() ? ci->GetSuccessor()->display : "(none)") << " to " << (nc ? nc->display : "(none)"); + Log(source.AccessFor(ci).HasPriv("SET") ? LOG_COMMAND : LOG_OVERRIDE, source, this, ci) << "to change the successor from " << (ci->GetSuccessor() ? ci->GetSuccessor()->display : "(none)") << " to " << (nc ? nc->display : "(none)"); ci->SetSuccessor(nc); |