|
@@ -120,7 +120,7 @@ function gamepedia_check_wiki(lang, msg, title, wiki, cmd, reaction, spoiler = '
|
|
|
else minecraft.SYNTAX(lang, msg, wiki, invoke.substring(1), args, title, cmd, reaction, spoiler);
|
|
|
return;
|
|
|
}
|
|
|
- if ( body.query.pages ) {
|
|
|
+ if ( body.query.pages && body.query.pages?.['-1']?.title !== '%1F' ) {
|
|
|
var querypages = Object.values(body.query.pages);
|
|
|
var querypage = querypages[0];
|
|
|
if ( body.query.redirects && body.query.redirects[0].from.split(':')[0] === body.query.namespaces['-1']['*'] && body.query.specialpagealiases.filter( sp => ['Mypage','Mytalk','MyLanguage'].includes( sp.realname ) ).map( sp => sp.aliases[0] ).includes( body.query.redirects[0].from.split(':').slice(1).join(':').split('/')[0].replace( / /g, '_' ) ) ) {
|