Dont react when people post multiple exclamation marks

This commit is contained in:
Deukhoofd 2018-07-30 21:46:57 +02:00
parent fe6639a1e0
commit b95bec40ba
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ namespace DeukBot4.MessageHandlers.CommandHandler
if (message.Content[0] != CommandTrigger && message.MentionedUsers.All(x => x.Id != Program.BotId)) if (message.Content[0] != CommandTrigger && message.MentionedUsers.All(x => x.Id != Program.BotId))
return; return;
if (message.Content[1] == '!')
return;
var req = await CommandRequest.Create(message); var req = await CommandRequest.Create(message);
var resultCode = req.Item2; var resultCode = req.Item2;