They cause too many false positives to be useful currently. I might re-implement them in a different way to avoid this, but the room staff has let me know this is a very low priority
- Method `this.runBroadcast()` has been split from `this.canBroadcast()`.
It's now the only method handling command-usage and intended as the main API
for synchronous commands. Async commands will execute both separately.
Note that the `suppressMessage` parameter is now passed to `runBroadcast`.
- The semantics of `broadcasting` have been similarly split.
`this,broadcastMessage` will be set to a truthy value when `this.canBroadcast` is run.
`this,broadcasting` will only be set to `true` once `this.runBroadcast` is executed.
Now that nodejs/node#3072 is mostly fixed, we can finally start using
Node 4+ features.
This refactor:
- uses arrow functions where appropriate
Note that arrow functions still aren't used in Mocha, where `this`
is sometimes meaningful.
This also removes the need for .bind() nearly everywhere, as well
as the `self = this` trick.
- refactors Validator and Connection into ES6 classes
- no longer uses Array#forEach for iterating arrays
We strongly prefer for (let i = 0; i < arr.length; i++) because of
performance reasons. Most forEaches have been replaced with for..of,
though, which is 5x slower than the long-form loop but 2x faster
than forEach, which is good enough outside of most inner loops.
The only exception is tournaments, which is due for a more invasive
refactor soon anyway.
Fix giveaways becoming frozen/endless from hotpatching, fix possible
crash in lottery giveaways, simplify lottery drawings, and improve
wording in multiple statements
Log the user that the giveaway was done for in the modlog ontop of roomauth who did it
Wifi Plugin: Log what user have done giveaways
remove 'has'
Wifi Plugin: Log what user have done giveaways
Add back in the space.
well, ``lotto`` is a command, so it makes sense that ``join`` and ``leave`` have ``joinlotto`` and ``leavelotto`` as aliases in addition to ``joinlottery`` and ``leavelottery``.
Users weren't able to guess more than once in a question giveaway because their current name was in their list of previous names.
http://prntscr.com/6c5r4p
Added a line of code to fix that problem. Thanks to Cranham (and maybe a few others too) for pointing this out originally, btw.
following morfents commit but updating it for the wi-fi plugin aswell, to avoid issues after hotpatching
Wi-fi Plugin: Finish Exporting states
Wi-fi Plugin: Finish Exporting states
Fix build errors
Wi-fi Plugin: Finish Exporting states
Fix massive style errors I made with indentation