Improved Wiki Button (#15147)

* Improved Wiki Button

* delete redundant popup

Co-authored-by: Kyep <Kyep@users.noreply.github.com>
This commit is contained in:
Kyep
2021-01-10 20:11:04 +00:00
committed by GitHub
co-authored by Kyep
parent 66d0852444
commit f6b80268d7
2 changed files with 6 additions and 9 deletions
+1 -8
View File
@@ -261,14 +261,7 @@ SUBSYSTEM_DEF(changelog)
if("forum")
usr.client.forum()
if("wiki")
// Wiki needs snowflake because it has no cancel button
if(config.wikiurl)
if(alert("This will open the wiki in your browser. Are you sure?",,"Yes","No")=="No")
return
usr.client.wiki()
else
to_chat(usr, "<span class='danger'>The Wiki URL is not set in the server configuration. Please inform the server host.</span>")
usr.client.wiki()
if("github")
usr.client.github()
// Takes a PR number as argument