Update all links returned by commands to HTTPS

This commit is contained in:
Ivo Julca 2015-07-03 00:39:15 -05:00
parent 3e4b506a7e
commit 563d691e05

View File

@ -317,8 +317,8 @@ var commands = exports.commands = {
return '<font color=#585858>' + detail + (details[detail] !== '' ? ':</font> ' + details[detail] : '</font>');
}).join("&nbsp;|&ThickSpace;") + '</font>';
if (isSnatch) buffer += '&nbsp;|&ThickSpace;<a href="http://pokemonshowdown.com/dex/moves/snatch"><font size="1">Snatchable Moves</font></a>';
if (isMirrorMove) buffer += '&nbsp;|&ThickSpace;<a href="http://pokemonshowdown.com/dex/moves/mirrormove"><font size="1">Mirrorable Moves</font></a>';
if (isSnatch) buffer += '&nbsp;|&ThickSpace;<a href="https://pokemonshowdown.com/dex/moves/snatch"><font size="1">Snatchable Moves</font></a>';
if (isMirrorMove) buffer += '&nbsp;|&ThickSpace;<a href="https://pokemonshowdown.com/dex/moves/mirrormove"><font size="1">Mirrorable Moves</font></a>';
}
this.sendReply(buffer);
},
@ -1367,7 +1367,7 @@ var commands = exports.commands = {
var buffer = '<div class="scrollable"><table cellpadding="1" width="100%"><tr><th></th>';
var icon = {};
for (var type in Tools.data.TypeChart) {
icon[type] = '<img src="http://play.pokemonshowdown.com/sprites/types/' + type + '.png" width="32" height="14">';
icon[type] = '<img src="https://play.pokemonshowdown.com/sprites/types/' + type + '.png" width="32" height="14">';
// row of icons at top
buffer += '<th>' + icon[type] + '</th>';
}
@ -1496,7 +1496,7 @@ var commands = exports.commands = {
forums: function (target, room, user) {
if (!this.canBroadcast()) return;
this.sendReplyBox("<a href=\"http://www.smogon.com/forums/forums/pok%C3%A9mon-showdown.209\">Pok&eacute;mon Showdown Forums</a>");
this.sendReplyBox("<a href=\"https://www.smogon.com/forums/forums/pok%C3%A9mon-showdown.209\">Pok&eacute;mon Showdown Forums</a>");
},
suggestions: function (target, room, user) {
@ -1508,11 +1508,11 @@ var commands = exports.commands = {
bugs: function (target, room, user) {
if (!this.canBroadcast()) return;
if (room.battle) {
this.sendReplyBox("<center><button name=\"saveReplay\"><i class=\"icon-upload\"></i> Save Replay</button> &mdash; <a href=\"http://www.smogon.com/forums/threads/3520646/\">Questions</a> &mdash; <a href=\"https://www.smogon.com/forums/threads/3469932/\">Bug Reports</a></center>");
this.sendReplyBox("<center><button name=\"saveReplay\"><i class=\"icon-upload\"></i> Save Replay</button> &mdash; <a href=\"https://www.smogon.com/forums/threads/3520646/\">Questions</a> &mdash; <a href=\"https://www.smogon.com/forums/threads/3469932/\">Bug Reports</a></center>");
} else {
this.sendReplyBox(
"Have a replay showcasing a bug on Pok&eacute;mon Showdown?<br />" +
"- <a href=\"http://www.smogon.com/forums/threads/3520646/\">Questions</a><br />" +
"- <a href=\"https://www.smogon.com/forums/threads/3520646/\">Questions</a><br />" +
"- <a href=\"https://www.smogon.com/forums/threads/3469932/\">Bug Reports</a>"
);
}
@ -1653,7 +1653,7 @@ var commands = exports.commands = {
if (target === 'all' || target === 'pu') {
matched = true;
if (target !== 'all') buffer += "The unofficial tier below NU.<br />";
buffer += "- <a href=\"http://www.smogon.com/forums/forums/pu.327/\">PU</a><br />";
buffer += "- <a href=\"https://www.smogon.com/forums/forums/pu.327/\">PU</a><br />";
}
if (target === 'all' || target === 'inversebattle' || target === 'inverse') {
matched = true;
@ -1835,7 +1835,7 @@ var commands = exports.commands = {
}
if (target === 'all' || target === 'star' || target === 'player') {
matched = true;
buffer += '<a href="http://www.smogon.com/sim/faq#star">Why is there this star (&starf;) in front of my username?</a><br />';
buffer += '<a href="https://www.smogon.com/sim/faq#star">Why is there this star (&starf;) in front of my username?</a><br />';
}
if (target === 'all' || target === 'staff') {
matched = true;