messenger
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 8](git.png)
Vars | |
invisible | Whether the user is invisible to the message list. |
---|---|
last_text | great wisdom from PDA.dm - "no spamming" (prevents people from spamming the same message over and over) |
last_text_everyone | even more wisdom from PDA.dm - "no everyone spamming" (prevents people from spamming the same message over and over) |
mime_mode | Whether or not we're in a mime PDA. |
ringtone | The current ringtone (displayed in the chat when a message is received). |
saved_chats | An asssociative list of chats we have started, format: chatref -> pda_chat. |
selected_image | Selected photo for sending purposes. |
sending_and_receiving | Whether or not we're sending and receiving messages. |
sending_virus | Whether or not we're sending (or trying to send) a virus. |
sort_by_job | Whether or not we're sorting by job. |
spam_mode | Whether this app can send messages to all. |
viewing_messages_of | Whose chatlogs we currently have open. If we are in the contacts list, this is null. |
Procs | |
Topic | topic call that answers to people pressing "(Reply)" in chat |
can_send_everyone_message | Checks if the person can send an everyone message |
create_chat | Creates a chat and adds it to saved_chats. Supports fake users. Returns the newly created chat. |
find_chat_by_recipient | Gets the chat by the recipient, either by their name or messenger ref |
get_messengers | Gets the list of available messengers |
get_picture_assets | Gets all currently relevant photo asset keys |
quick_reply_prompt | Brings up the quick reply prompt to send a message. |
sanitize_pda_message | Returns a message input, sanitized and checked against the filter |
send_message | Sends a message to targets via PDA. When sending to everyone, set everyone to true so the message is formatted accordingly |
send_message_to_all | Helper proc that sends a message to everyone |
send_rigged_message | Sends a rigged message that explodes when the recipient tries to reply or look at it. |
set_ringtone | Set the ringtone if possible. Also handles encoding. |
update_pictures_for_all | Sends new datum/picture assets to everyone |
Var Details
invisible
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 26](git.png)
Whether the user is invisible to the message list.
last_text
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 28](git.png)
great wisdom from PDA.dm - "no spamming" (prevents people from spamming the same message over and over)
last_text_everyone
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 30](git.png)
even more wisdom from PDA.dm - "no everyone spamming" (prevents people from spamming the same message over and over)
mime_mode
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 32](git.png)
Whether or not we're in a mime PDA.
ringtone
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 42](git.png)
The current ringtone (displayed in the chat when a message is received).
saved_chats
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 37](git.png)
An asssociative list of chats we have started, format: chatref -> pda_chat.
selected_image
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 48](git.png)
Selected photo for sending purposes.
sending_and_receiving
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 46](git.png)
Whether or not we're sending and receiving messages.
sending_virus
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 50](git.png)
Whether or not we're sending (or trying to send) a virus.
sort_by_job
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 44](git.png)
Whether or not we're sorting by job.
spam_mode
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 34](git.png)
Whether this app can send messages to all.
viewing_messages_of
![code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm 39](git.png)
Whose chatlogs we currently have open. If we are in the contacts list, this is null.
Proc Details
Topic
topic call that answers to people pressing "(Reply)" in chat
can_send_everyone_message
Checks if the person can send an everyone message
create_chat
Creates a chat and adds it to saved_chats. Supports fake users. Returns the newly created chat.
find_chat_by_recipient
Gets the chat by the recipient, either by their name or messenger ref
get_messengers
Gets the list of available messengers
get_picture_assets
Gets all currently relevant photo asset keys
quick_reply_prompt
Brings up the quick reply prompt to send a message.
sanitize_pda_message
Returns a message input, sanitized and checked against the filter
send_message
Sends a message to targets via PDA. When sending to everyone, set everyone
to true so the message is formatted accordingly
send_message_to_all
Helper proc that sends a message to everyone
send_rigged_message
Sends a rigged message that explodes when the recipient tries to reply or look at it.
set_ringtone
Set the ringtone if possible. Also handles encoding.
update_pictures_for_all
Sends new datum/picture assets to everyone