Slash command "hotfix"
This commit is contained in:
@@ -81,17 +81,22 @@ func process_message(text: String, local: bool, player, playerhud):
|
||||
LucysLib.send_message(msg, Color.aqua, false, null, "peers")
|
||||
return
|
||||
|
||||
var colon: bool = true
|
||||
# i don't know why the wag stuff toggles multiple times
|
||||
# and applies anywhere in string
|
||||
# i'm doing it once.
|
||||
if "/wag" in text:
|
||||
PlayerData.emit_signal("_wag_toggle")
|
||||
text.replace("/wag","")
|
||||
text = text.replace("/wag","")
|
||||
# /me has to be at beginning because i say so
|
||||
var colon: bool = true
|
||||
if text.begins_with("/me "):
|
||||
elif text.begins_with("/me "):
|
||||
colon = false
|
||||
text = text.trim_prefix("/me ")
|
||||
# return other slash command control to the original function
|
||||
# for other mods to play with
|
||||
elif text.begins_with("/"):
|
||||
playerhud._lucy_original_send_message(text)
|
||||
return
|
||||
|
||||
# process message into bbcode nodes
|
||||
var msg := LucysLib.BBCode.parse_bbcode_text(text)
|
||||
|
Reference in New Issue
Block a user