diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm
index e5687ba2050..1257c494746 100644
--- a/code/game/gamemodes/game_mode.dm
+++ b/code/game/gamemodes/game_mode.dm
@@ -137,18 +137,7 @@
useMS.send_pda_message("[P.owner]", "[command_name()] Payroll", msg)
var/datum/data/pda/app/messenger/PM = P.find_program(/datum/data/pda/app/messenger)
- if(PM)
- PM.play_ringtone()
- //Search for holder of the PDA.
- var/mob/living/L = null
- if(P.loc && isliving(P.loc))
- L = P.loc
- //Maybe they are a pAI!
- else
- L = get(P, /mob/living/silicon)
-
- if(L)
- L << "\icon[P] Message from [command_name()] (Payroll), \"[msg]\" (Unable to Reply)"
+ PM.notify("Message from [command_name()] (Payroll), \"[msg]\" (Unable to Reply)", 0)
break
/datum/game_mode/proc/check_finished() //to be called by ticker
diff --git a/code/game/gamemodes/mutiny/mutiny.dm b/code/game/gamemodes/mutiny/mutiny.dm
index 113cffa46c0..e3edc521f33 100644
--- a/code/game/gamemodes/mutiny/mutiny.dm
+++ b/code/game/gamemodes/mutiny/mutiny.dm
@@ -107,9 +107,7 @@ datum/game_mode/mutiny
var/datum/data/pda/app/messenger/pdam = pda.find_program(/datum/data/pda/app/messenger)
if(pdam)
- pdam.play_ringtone()
-
- head_mutineer.current << fluff.get_pda_body()
+ pdam.notify(fluff.get_pda_body(), 0)
return 1
proc/get_equipment_slots()
diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm
index 85d4807b355..75c9974bfbb 100644
--- a/code/game/machinery/computer/message.dm
+++ b/code/game/machinery/computer/message.dm
@@ -22,17 +22,18 @@
var/defaultmsg = "Welcome. Please select an option."
var/rebootmsg = "%$&(£: Critical %$$@ Error // !RestArting! - ?pLeaSe wAit!"
//Computer properties
- var/screen = 0 // 0 = Main menu, 1 = Message Logs, 2 = Hacked screen, 3 = Custom Message
+ var/screen = 0 // 0 = Main menu, 1 = Message Logs, 2 = Hacked screen, 3 = Custom Message, 4 = chat room selection, 5 = chat room logs
var/hacking = 0 // Is it being hacked into by the AI/Cyborg
var/emag = 0 // When it is emagged.
var/message = "System bootup complete. Please select an option." // The message that shows on the main menu.
var/auth = 0 // Are they authenticated?
- var/optioncount = 7
+ var/optioncount = 8
// Custom Message Properties
var/customsender = "System Administrator"
var/obj/item/device/pda/customrecepient = null
var/customjob = "Admin"
var/custommessage = "This is a test, please ignore."
+ var/datum/chatroom/current_chatroom = null
light_color = LIGHT_COLOR_DARKGREEN
@@ -130,6 +131,7 @@
dat += "
[++i]. Clear Request Console Logs
"
dat += " [++i]. Set Custom Key
"
dat += " [++i]. Send Admin Message
"
+ dat += " [++i]. View Chatrooms
"
else
for(var/n = ++i; n <= optioncount; n++)
dat += " [n]. ---------------
"
@@ -247,7 +249,41 @@
dat += {"| X | [rc.send_dpt] |
[rc.rec_dpt] | [rc.message] | [rc.stamp] | [rc.id_auth] | [rc.priority] |
"}
dat += ""
-
+ //Chat room list
+ if(5)
+ dat += "Back - Refresh
"
+ dat += {"
+
+ | Room Name |
+ Users |
+ Invites |
+ Messages |
+
"}
+ for(var/datum/chatroom/C in chatrooms)
+ var/list/invites = (C.invites - C.users)
+ dat += {"
+ | [C.name] |
+ [C.users.len] |
+ [invites.len] |
+ [C.logs.len] |
+
"}
+ dat += "
"
+ //View chat room logs
+ if(6)
+ dat += "Back - Refresh
"
+ dat += {"
+
+ | Name |
+ Message |
+
"}
+ if(current_chatroom)
+ for(var/M in current_chatroom.logs)
+ var/list/message = M
+ dat += {"
+ | [message["username"]] |
+ [message["message"]] |
+
"}
+ dat += "
"
dat += "