inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 4690bbdee8b5a91938e3e2ac86f606951cccf2e8
parent 7141ccc5bbf043ae2891905f8059635981b36717
Author: Peter Powell <petpow@saberuk.com>
Date:   Mon,  4 Feb 2019 14:22:49 +0000

m_check: split modeperms into chanmodeperms and usermodeperms.

Diffstat:
Msrc/modules/m_check.cpp | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 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()); }