diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 7caee7be49..92e5fe0546 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -70,10 +70,10 @@ if(href_list["irc_msg"]) if(!holder && received_irc_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes - to_chat(usr, span_warning("You are no longer able to use this, it's been more than 10 minutes since an admin on IRC has responded to you")) + to_chat(src, span_warning("You are no longer able to use this, it's been more than 10 minutes since an admin on IRC has responded to you")) return if(mute_irc) - to_chat(usr, "") + to_chat(src, "") return send2adminirc(href_list["irc_msg"]) return @@ -657,7 +657,7 @@ show_verb_panel = !show_verb_panel - to_chat(usr, "Your verbs are now [show_verb_panel ? "on" : "off. To turn them back on, type 'toggle-verbs' into the command bar."].") + to_chat(src, "Your verbs are now [show_verb_panel ? "on" : "off. To turn them back on, type 'toggle-verbs' into the command bar."].") *///CHOMPRemove End /* @@ -673,6 +673,23 @@ winset(usr, "input", "is-visible=false") */ +/client/verb/show_active_playtime() + set name = "Active Playtime" + set category = "IC.Game" + + if(!play_hours.len) + to_chat(src, span_warning("Persistent playtime disabled!")) + return + + var/department_hours = "" + for(var/play_hour in play_hours) + if(!isnum(play_hour) && isnum(play_hours[play_hour])) + department_hours += "
\t[capitalize(play_hour)]: [play_hours[play_hour]]" + if(!department_hours) + to_chat(src, span_warning("No recorded playtime found!")) + return + to_chat(src, span_info("Your department hours:" + department_hours)) + /// compiles a full list of verbs and sends it to the browser /client/proc/init_verbs() if(IsAdminAdvancedProcCall())