mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
[+] Fix #replace()
This commit is contained in:
parent
4c67553bdd
commit
0c2f0a714c
@ -412,12 +412,12 @@ public class Discord extends FreedomService
|
||||
}
|
||||
|
||||
|
||||
Matcher DISCORD_MENTION_MATCHER = this.DISCORD_MENTION_PATTERN.matcher(message);
|
||||
Matcher DISCORD_MENTION_MATCHER = DISCORD_MENTION_PATTERN.matcher(message);
|
||||
|
||||
while (DISCORD_MENTION_MATCHER.find())
|
||||
{
|
||||
String mention = DISCORD_MENTION_MATCHER.group(1);
|
||||
message = message.replace(mention, mention.replace('@',''));
|
||||
message = message.replace(mention, mention.replace("@",""));
|
||||
}
|
||||
|
||||
if (enabled && !chat_channel_id.isEmpty())
|
||||
@ -446,12 +446,12 @@ public class Discord extends FreedomService
|
||||
}
|
||||
|
||||
|
||||
Matcher DISCORD_MENTION_MATCHER = this.DISCORD_MENTION_PATTERN.matcher(message);
|
||||
Matcher DISCORD_MENTION_MATCHER = DISCORD_MENTION_PATTERN.matcher(message);
|
||||
|
||||
while (DISCORD_MENTION_MATCHER.find())
|
||||
{
|
||||
String mention = DISCORD_MENTION_MATCHER.group(1);
|
||||
message = message.replace(mention, mention.replace('@',''));
|
||||
message = message.replace(mention, mention.replace("@",""));
|
||||
}
|
||||
|
||||
if (enabled && !chat_channel_id.isEmpty())
|
||||
|
Loading…
Reference in New Issue
Block a user