Browse Source

Bot - Fixed issue where AllowedMessageTypes was not being filtered for a command. (Whoops?)

tags/3.1.2
Teknikode 3 years ago
parent
commit
fb79327286
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Combot/Bot.cs

+ 1
- 1
Combot/Bot.cs View File

@@ -667,7 +667,7 @@ namespace Combot
Log("Found Module " + module.Name);
// Find the command
Command cmd = module.Commands.Find(c => c.Triggers.Contains(command));
if (cmd != null)
if (cmd != null && cmd.AllowedMessageTypes.Contains(messageType))
{
Log("Found Command " + cmd.Name);
CommandMessage newCommand = new CommandMessage();

Loading…
Cancel
Save