Skip to content

Commit

Permalink
Fixed issues with seamless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CptShad committed May 1, 2021
1 parent 88ba441 commit 1e615f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ function MessageListener(Message)
}
else if (Config['discord']['SeamlessMode'])
{
if (match[1].toLocaleLowerCase() == "dm") {

if (match && match[1].toLocaleLowerCase() == "dm") {
DMHandler(Message.author.username, match[2], match[3]);
return;
}
Expand Down

0 comments on commit 1e615f3

Please sign in to comment.