Use named constants

This commit is contained in:
Mark Haines 2017-06-27 15:55:24 +01:00
parent 104551ecd0
commit e5ff5f23df

View file

@ -128,7 +128,7 @@ func (s *OutputRoomEvent) processMessage(ore api.OutputRoomEvent, ev gomatrixser
return err
}
if ore.SendAsServer == "" {
if ore.SendAsServer == api.DoNotSendToOtherServers {
// Ignore event that we don't need to send anywhere.
return nil
}