From ffab5e3c12a531b9dc95682085b9d3525443e4b9 Mon Sep 17 00:00:00 2001 From: abhiram Date: Mon, 12 Apr 2021 16:01:31 +0530 Subject: [PATCH] [+] Allman style formating --- .../me/totalfreedom/totalfreedommod/discord/Discord.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java index c90ed31a..7cb4c078 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/Discord.java @@ -411,10 +411,11 @@ public class Discord extends FreedomService message = StringUtils.remove(message, "ยง"); } - + Matcher DISCORD_MENTION_MATCHER = this.DISCORD_MENTION_PATTERN.matcher(message); - while (DISCORD_MENTION_MATCHER.find()) { + while (DISCORD_MENTION_MATCHER.find()) + { String mention = DISCORD_MENTION_MATCHER.group(1); message = message.replace(mention, mention.replace('@',' ')); } @@ -447,7 +448,8 @@ public class Discord extends FreedomService Matcher DISCORD_MENTION_MATCHER = this.DISCORD_MENTION_PATTERN.matcher(message); - while (DISCORD_MENTION_MATCHER.find()) { + while (DISCORD_MENTION_MATCHER.find()) + { String mention = DISCORD_MENTION_MATCHER.group(1); message = message.replace(mention, mention.replace('@',' ')); }