Adds forum-based link config setting

This commit is contained in:
Kyep
2019-11-13 20:41:28 -08:00
parent de7b8c52e7
commit db82363bfb
3 changed files with 17 additions and 6 deletions
+9 -5
View File
@@ -81,12 +81,16 @@
set name = "Discord"
set desc = "Join our Discord server."
set hidden = 1
if(config.discordurl)
if(alert("This will invite you to our Discord server. Are you sure?",,"Yes","No")=="No")
return
src << link(config.discordurl)
else
var/durl = config.discordurl
if(config.forum_link_url && prefs && prefs.fuid && config.discordforumurl)
durl = config.discordforumurl
if(!durl)
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
return
if(alert("This will invite you to our Discord server. Are you sure?",,"Yes","No")=="No")
return
src << link(durl)
/client/verb/donate()
set name = "Donate"