From a6c80b45a4f099974d86b0e3b978d18da76ddc72 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Fri, 13 Mar 2020 18:36:33 -0700 Subject: [PATCH] fix user level for the console when admins are added --- CommandSystem/CommandManager.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CommandSystem/CommandManager.cs b/CommandSystem/CommandManager.cs index f45a98a..bd6a98b 100644 --- a/CommandSystem/CommandManager.cs +++ b/CommandSystem/CommandManager.cs @@ -61,7 +61,11 @@ namespace Bot.CommandSystem if (parameters.type == "chat") sourceLoc = MessageHandler.Destinations.DEST_LOCAL; else if (parameters.type == "group") sourceLoc = MessageHandler.Destinations.DEST_GROUP; else if (parameters.type == "im") sourceLoc = MessageHandler.Destinations.DEST_AGENT; - else if (parameters.type == "console") sourceLoc = MessageHandler.Destinations.DEST_CONSOLE_INFO; + else if (parameters.type == "console") + { + userLevel = 5000; + sourceLoc = MessageHandler.Destinations.DEST_CONSOLE_INFO; + } else sourceLoc = MessageHandler.Destinations.DEST_LOCAL; string agentName = parameters.fromName;