You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a lot of discussion in Dev and a somewhat-close poll, but in
the end "Chat" was a better name than "Messages", and also has the
advantage of being shorter (which is nice for Chat.html and
Chat.plural which should be short).
if(!(targetinTools.data.TypeChart))return{reply: "Type '"+CommandParser.escapeHTML(target)+"' not found."};
705
+
if(!(targetinTools.data.TypeChart))return{reply: "Type '"+Chat.escapeHTML(target)+"' not found."};
706
706
if(!searches['type'])searches['type']={};
707
707
if((searches['type'][target]&&isNotSearch)||(searches['type'][target]===false&&!isNotSearch))return{reply: 'A search cannot both exclude and include a type.'};
708
708
searches['type'][target]=!isNotSearch;
@@ -786,15 +786,15 @@ function runMovesearch(target, cmd, canAll, message) {
786
786
case'=': direction='equal';break;
787
787
}
788
788
}else{
789
-
return{reply: "No value given to compare with '"+CommandParser.escapeHTML(target)+"'."};
789
+
return{reply: "No value given to compare with '"+Chat.escapeHTML(target)+"'."};
790
790
}
791
791
letprop=targetParts[propSide];
792
792
switch(toId(targetParts[propSide])){
793
793
case'basepower': prop='basePower';break;
794
794
case'bp': prop='basePower';break;
795
795
case'acc': prop='accuracy';break;
796
796
}
797
-
if(!(propinallProperties))return{reply: "'"+CommandParser.escapeHTML(target)+"' did not contain a valid property."};
797
+
if(!(propinallProperties))return{reply: "'"+Chat.escapeHTML(target)+"' did not contain a valid property."};
798
798
if(!searches['property'])searches['property']={};
799
799
if(direction==='equal'){
800
800
if(searches['property'][prop])return{reply: "Invalid property range for "+prop+"."};
@@ -845,7 +845,7 @@ function runMovesearch(target, cmd, canAll, message) {
845
845
case'evasiveness': target='evasion';break;
846
846
default: target=target.substr(7);
847
847
}
848
-
if(!(targetinallBoosts))return{reply: "'"+CommandParser.escapeHTML(target.substr(7))+"' is not a recognized stat."};
848
+
if(!(targetinallBoosts))return{reply: "'"+Chat.escapeHTML(target.substr(7))+"' is not a recognized stat."};
849
849
if(!searches['boost'])searches['boost']={};
850
850
if((searches['boost'][target]&&isNotSearch)||(searches['boost'][target]===false&&!isNotSearch))return{reply: 'A search cannot both exclude and include a stat boost.'};
851
851
searches['boost'][target]=!isNotSearch;
@@ -880,7 +880,7 @@ function runMovesearch(target, cmd, canAll, message) {
880
880
continue;
881
881
}
882
882
883
-
return{reply: "'"+CommandParser.escapeHTML(oldTarget)+"' could not be found in any of the search categories."};
883
+
return{reply: "'"+Chat.escapeHTML(oldTarget)+"' could not be found in any of the search categories."};
0 commit comments