Explorar el Código

Ignore messages in unknown guilds

Tulir Asokan hace 3 años
padre
commit
a9b6d08ec6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      user.go

+ 1 - 1
user.go

@@ -506,7 +506,7 @@ func (user *User) bridgeMessage(guildID string) bool {
 	}
 
 	guild := user.bridge.GetGuildByID(guildID, false)
-	if guild.MXID != "" {
+	if guild != nil && guild.MXID != "" {
 		return true
 	}