mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #1699 from SinTwo/communicator_fix
Fixes Note Keeper and Empty Message
This commit is contained in:
@@ -375,6 +375,7 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
|
|||||||
return
|
return
|
||||||
var/their_address = href_list["message"]
|
var/their_address = href_list["message"]
|
||||||
var/text = sanitizeSafe(input(usr,"Enter your message.","Text Message"))
|
var/text = sanitizeSafe(input(usr,"Enter your message.","Text Message"))
|
||||||
|
if(text)
|
||||||
exonet.send_message(their_address, "text", text)
|
exonet.send_message(their_address, "text", text)
|
||||||
im_list += list(list("address" = exonet.address, "to_address" = their_address, "im" = text))
|
im_list += list(list("address" = exonet.address, "to_address" = their_address, "im" = text))
|
||||||
|
|
||||||
@@ -403,12 +404,15 @@ var/global/list/obj/item/device/communicator/all_communicators = list()
|
|||||||
selected_tab = href_list["switch_tab"]
|
selected_tab = href_list["switch_tab"]
|
||||||
|
|
||||||
if(href_list["edit"])
|
if(href_list["edit"])
|
||||||
var/n = input(usr, "Please enter message", name, notehtml) as message
|
var/n = input(usr, "Please enter message", name, notehtml)
|
||||||
n = sanitizeSafe(n, extra = 0)
|
n = sanitizeSafe(n, extra = 0)
|
||||||
if (selected_tab == 5)
|
if(n)
|
||||||
note = html_decode(n)
|
note = html_decode(n)
|
||||||
notehtml = note
|
notehtml = note
|
||||||
note = replacetext(note, "\n", "<br>")
|
note = replacetext(note, "\n", "<br>")
|
||||||
|
else
|
||||||
|
note = ""
|
||||||
|
notehtml = note
|
||||||
|
|
||||||
nanomanager.update_uis(src)
|
nanomanager.update_uis(src)
|
||||||
add_fingerprint(usr)
|
add_fingerprint(usr)
|
||||||
|
|||||||
Reference in New Issue
Block a user