security fix not taking messages from wrong channels anymore
This commit is contained in:
@@ -58,12 +58,15 @@ public class DoStuff {
|
||||
}
|
||||
List<User> blockLast = event.getMessage().getUserMentions().buffer().blockLast();
|
||||
String content = event.getMessage().getContent();
|
||||
if (!channelpermissionsDenied && blockLast != null) {
|
||||
if (!channelpermissionsDenied) {
|
||||
if (blockLast != null)
|
||||
{
|
||||
for (User user : blockLast) {
|
||||
content = content.replace(user.getId().asString(), "");
|
||||
}
|
||||
}
|
||||
MessageResponseHandler.getMessage(content);
|
||||
}
|
||||
MessageResponseHandler.getMessage(content);
|
||||
boolean mentionedBot = false;
|
||||
if (blockLast != null){
|
||||
for (User user : blockLast)
|
||||
|
||||
Reference in New Issue
Block a user