fix user level for the console when admins are added
This commit is contained in:
parent
e270111e0c
commit
a6c80b45a4
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue