summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-02-04 14:22:49 +0000
committerPeter Powell <petpow@saberuk.com>2019-02-04 14:22:49 +0000
commit4690bbdee8b5a91938e3e2ac86f606951cccf2e8 (patch)
tree64eaa5bb1f5a68a1c0293833f1b34c85eeda0e66
parent7141ccc5bbf043ae2891905f8059635981b36717 (diff)
m_check: split modeperms into chanmodeperms and usermodeperms.
-rw-r--r--src/modules/m_check.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 5e1c01acb..39f0d190a 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -196,9 +196,8 @@ class CommandCheck : public Command
context.Write("opertype", oper->name);
if (loctarg)
{
- std::string umodes = GetAllowedOperOnlyModes(loctarg, MODETYPE_USER);
- std::string cmodes = GetAllowedOperOnlyModes(loctarg, MODETYPE_CHANNEL);
- context.Write("modeperms", "user=" + umodes + " channel=" + cmodes);
+ context.Write("chanmodeperms", GetAllowedOperOnlyModes(loctarg, MODETYPE_CHANNEL));
+ context.Write("usermodeperms", GetAllowedOperOnlyModes(loctarg, MODETYPE_USER));
context.Write("commandperms", oper->AllowedOperCommands.ToString());
context.Write("permissions", oper->AllowedPrivs.ToString());
}