Skip to content

Commit

Permalink
Quick big-fix
Browse files Browse the repository at this point in the history
When using a command, do not send the quick link
  • Loading branch information
chamik committed Mar 3, 2021
1 parent 66103e9 commit c0f15d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thorn/Services/CommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private async Task HandleCommandAsync(SocketMessage m)
var context = new SocketCommandContext(_client, msg);

var matches = Regex.Matches(m.Content, @"SCP(-| )[0-9]{3,4}((-| )(J|EX|ARC|SK|C[ZS]((-| )(J|EX|ARC)|))|)(?=(\s|$))", RegexOptions.IgnoreCase);
if (matches.Count > 0)
if (matches.Count > 0 && !msg.HasStringPrefix(_config["prefix"], ref argPos))
{
await m.Channel.SendMessageAsync(embed: await _scp.GetEmbedForReference(matches.Select(x => x.Value).ToList()));
return;
Expand Down

0 comments on commit c0f15d2

Please sign in to comment.