Markus-Rost 7 gadi atpakaļ
vecāks
revīzija
b0ab1fabda
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -429,7 +429,7 @@ function cmd_link(lang, msg, title, wiki, cmd) {
 							} );
 						}
 						else {
-							msg.channel.send( 'https://' + wiki + '.gamepedia.com/' + encodeURI( Object.values(body.query.pages)[0].title.replace( / /g, '_' ) + ( body.query.redirects && body.query.redirects[0].tofragment ? '#' + body.query.redirects[0].tofragment : '' ) ) );
+							msg.channel.send( 'https://' + wiki + '.gamepedia.com/' + encodeURI( ( Object.values(body.query.pages)[0].title + ( body.query.redirects && body.query.redirects[0].tofragment ? '#' + body.query.redirects[0].tofragment : '' ) ).replace( / /g, '_' ) ) );
 						}
 					}
 					else if ( body.query.interwiki ) {