diff --git a/src/main/java/live/turna/phenyl/message/Forward.java b/src/main/java/live/turna/phenyl/message/Forward.java index 6b0127e..04fb1dd 100644 --- a/src/main/java/live/turna/phenyl/message/Forward.java +++ b/src/main/java/live/turna/phenyl/message/Forward.java @@ -57,8 +57,7 @@ public static void forwardToBungee(Group group, Long senderID, MessageChain mess if (senderID.equals(it.qqid())) return; } if (PhenylConfiguration.save_message) { - messageString = messageString.replaceAll("'", "''"); - phenyl.getStorage().addMessage(messageString, group.getId(), senderID); + phenyl.getStorage().addMessage(messageString.replaceAll("'", "''"), group.getId(), senderID); } String userName = phenyl.getStorage().getBinding(senderID).mcname(); if (PhenylConfiguration.forward_mode.equals("bind") && userName == null) return; @@ -143,8 +142,7 @@ public static boolean forwardToQQ(String message, String userName, String uuid, if (uuid.equals(it.uuid())) return false; } if (PhenylConfiguration.save_message) { - message = message.replaceAll("'", "''"); - phenyl.getStorage().addMessage(message, uuid); + phenyl.getStorage().addMessage(message.replaceAll("'", "''"), uuid); } // if matches an image url