MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / SendRoomExitsMessage

Function SendRoomExitsMessage

internal/scripting/messaging_func.go:45–59  ·  view source on GitHub ↗
(roomId int, message string, isQuiet bool, excludeUserIds ...int)

Source from the content-addressed store, hash-verified

43}
44
45func SendRoomExitsMessage(roomId int, message string, isQuiet bool, excludeUserIds ...int) {
46 if disableMessageQueue {
47 return
48 }
49
50 r := rooms.LoadRoom(roomId)
51 if r == nil {
52 return
53 }
54
55 message = roomTextWrap.Wrap(message)
56
57 r.SendTextToExits(message, isQuiet, excludeUserIds...)
58
59}
60
61func SendBroadcast(message string) {
62

Callers

nothing calls this directly

Calls 3

LoadRoomFunction · 0.92
WrapMethod · 0.80
SendTextToExitsMethod · 0.45

Tested by

no test coverage detected