Skip to content

Commit

Permalink
fix typo bug in setting of hasApiHighLimit flag
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Jan 15, 2023
1 parent 4142b2a commit e20d7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ export class mwn {
uiprop: 'rights',
}).then((response: ApiResponse & siteinfoqueryResponse) => {
this.title.processNamespaceData(response);
if (response.query.userinfo.rights.includes('apihighlimit')) {
if (response.query.userinfo.rights.includes('apihighlimits')) {
this.hasApiHighLimit = true;
}
if (response.query && response.query.tokens) {
Expand Down

0 comments on commit e20d7bd

Please sign in to comment.