Преглед изворни кода

[server] Prefix discord msg with hostname

Neeraj Gupta пре 1 година
родитељ
комит
4acc8395ba
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      server/pkg/controller/discord/discord.go

+ 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) {
-	c.Notify(message)
+	c.Notify(fmt.Sprintf("%s: %s", c.HostName, message))
 }
 
 func (c *DiscordController) getTimeSinceSignUp(userID int64) string {