(roomId int, message string, excludeIds ...int)
| 28 | } |
| 29 | |
| 30 | func SendRoomMessage(roomId int, message string, excludeIds ...int) { |
| 31 | if disableMessageQueue { |
| 32 | return |
| 33 | } |
| 34 | |
| 35 | r := rooms.LoadRoom(roomId) |
| 36 | if r == nil { |
| 37 | return |
| 38 | } |
| 39 | |
| 40 | message = roomTextWrap.Wrap(message) |
| 41 | |
| 42 | r.SendText(message, excludeIds...) |
| 43 | } |
| 44 | |
| 45 | func SendRoomExitsMessage(roomId int, message string, isQuiet bool, excludeUserIds ...int) { |
| 46 | if disableMessageQueue { |
no test coverage detected