Skip to content

Commit

Permalink
Merge pull request #246 from matrix-org/luke/fix-rate-limited-as
Browse files Browse the repository at this point in the history
Set `rate_limited = false` reg flag on generation
  • Loading branch information
lukebarnard1 authored Oct 18, 2016
2 parents f1a6ea1 + bfe14bd commit cc31ed2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ module.exports.generateRegistration = Promise.coroutine(function*(reg, config) {
reg.setHomeserverToken(AppServiceRegistration.generateToken());
reg.setAppServiceToken(asToken || AppServiceRegistration.generateToken());

// Disable rate limiting to allow large numbers of requests when many IRC users
// connect, for example on startup.
reg.setRateLimited(false);

let serverDomains = Object.keys(config.ircService.servers);
serverDomains.sort().forEach(function(domain) {
let server = _toServer(domain, config.ircService.servers[domain]);
Expand Down

0 comments on commit cc31ed2

Please sign in to comment.