Discord over IRC

Converts and replaces all IRC centric procs, vars, etcetera, into discord centric ones.
This commit is contained in:
skull132
2016-02-16 17:42:00 +02:00
parent ff44a211fb
commit 121d4fcdd7
11 changed files with 35 additions and 52 deletions
+3 -3
View File
@@ -34,9 +34,9 @@
// comment out the line below when debugging locally to enable the options & messages menu
//control_freak = 1
var/received_irc_pm = -99999
var/irc_admin //IRC admin that spoke with them last.
var/mute_irc = 0
var/received_discord_pm = -99999
var/discord_admin //IRC- no more IRC, K? Discord admin that spoke with them last.
var/mute_discord = 0
////////////////////////////////////
+6 -6
View File
@@ -45,14 +45,14 @@
cmd_admin_pm(C,null)
return
if(href_list["irc_msg"])
if(!holder && received_irc_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes
usr << "<span class='warning'>You are no longer able to use this, it's been more then 10 minutes since an admin on IRC has responded to you</span>"
if(href_list["discord_msg"])
if(!holder && received_discord_pm < world.time - 6000) //Worse they can do is spam IRC for 10 minutes
usr << "<span class='warning'>You are no longer able to use this, it's been more then 10 minutes since an admin on Discord has responded to you</span>"
return
if(mute_irc)
usr << "<span class='warning'You cannot use this as your client has been muted from sending messages to the admins on IRC</span>"
if(mute_discord)
usr << "<span class='warning'You cannot use this as your client has been muted from sending messages to the admins on Discord</span>"
return
cmd_admin_irc_pm(href_list["irc_msg"])
cmd_admin_discord_pm(href_list["discord_msg"])
return