mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
prevent ! commands from getting send to chat if no handler was found
This commit is contained in:
parent
66362b38d7
commit
b63e402003
|
|
@ -236,7 +236,7 @@ class ChatLogic(val ops: ChatOperations, implicit val context: ActorContext) ext
|
||||||
message.note
|
message.note
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
false
|
true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,18 @@ class ChatLogic(val ops: ChatOperations, implicit val context: ActorContext) ext
|
||||||
case "list" => ops.customCommandList(session, params, message)
|
case "list" => ops.customCommandList(session, params, message)
|
||||||
case "nearby" => ops.customCommandNearby(session)
|
case "nearby" => ops.customCommandNearby(session)
|
||||||
case "loc" => ops.customCommandLoc(session, message)
|
case "loc" => ops.customCommandLoc(session, message)
|
||||||
case _ => false
|
case _ =>
|
||||||
|
// command was not handled
|
||||||
|
sendResponse(
|
||||||
|
ChatMsg(
|
||||||
|
ChatMessageType.CMT_GMOPEN, // CMT_GMTELL
|
||||||
|
message.wideContents,
|
||||||
|
"Server",
|
||||||
|
s"Unknown command !$command",
|
||||||
|
message.note
|
||||||
|
)
|
||||||
|
)
|
||||||
|
true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue