mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-05 07:57:59 +01:00
Strip formatting in webhook name (#4344)
This commit is contained in:
parent
cca98e817f
commit
c020526b1e
@ -190,7 +190,7 @@ public final class DiscordUtil {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final DiscordMessageEvent event = new DiscordMessageEvent(messageType, FormatUtil.stripFormat(message), allowPing, avatarUrl, name, uuid);
|
final DiscordMessageEvent event = new DiscordMessageEvent(messageType, FormatUtil.stripFormat(message), allowPing, avatarUrl, FormatUtil.stripFormat(name), uuid);
|
||||||
|
|
||||||
// If the server is stopping, we cannot dispatch events.
|
// If the server is stopping, we cannot dispatch events.
|
||||||
if (messageType == MessageType.DefaultTypes.SERVER_STOP) {
|
if (messageType == MessageType.DefaultTypes.SERVER_STOP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user