Browse Source

[server] Prefix discord msg with hostname

Neeraj Gupta 1 năm trước cách đây
mục cha
commit
4acc8395ba

+ 1 - 1
server/pkg/controller/discord/discord.go

@@ -106,7 +106,7 @@ func (c *DiscordController) NotifyAccountDelete(userID int64, paymentProvider st
 }
 }
 
 
 func (c *DiscordController) NotifyPotentialAbuse(message string) {
 func (c *DiscordController) NotifyPotentialAbuse(message string) {
-	c.Notify(message)
+	c.Notify(fmt.Sprintf("%s: %s", c.HostName, message))
 }
 }
 
 
 func (c *DiscordController) getTimeSinceSignUp(userID int64) string {
 func (c *DiscordController) getTimeSinceSignUp(userID int64) string {