Commit Graph

541 Commits

Author SHA1 Message Date
Hidden50
3c18b58817 Add "muted in" to /whoare (#2600)
Lists the rooms that a user is muted in: http://i.imgur.com/xaO8sCx.png

Similar to "banned from", this can be useful to determine if a user is
hitting multiple rooms.
2016-06-27 15:23:55 -07:00
Guangcong Luo
a8fa6b15e4 Fix crash in /host 2016-06-23 19:50:57 -04:00
Konrad Borowski
3ae76495bb Output max question count on jeopardy creation failure 2016-06-19 21:42:46 +02:00
Guangcong Luo
76b0611dc9 Show lock/ban reasons in /whoare 2016-06-17 04:43:07 -04:00
asgdf
18768f9a39 Allow non-broadcasted use of /roomhelp in lobby/battles (#2587) 2016-06-16 06:19:19 +02:00
Bär Halberkamp
0b3610c0e5 Wifi: Display . and - in lottery answers 2016-06-11 04:35:17 +02:00
Ivo Julca
d5cb9af524 Polls: warn when trying to queue commands on creation 2016-06-02 19:31:32 -05:00
Ivo Julca
80b4ba55ad Polls: add support for multiline input in creation and HTML in options 2016-05-29 18:36:59 -05:00
Ivo Julca
b6b7b3cca3 Poll: Export Poll class 2016-05-26 18:55:30 -05:00
Bär Halberkamp
7fe96fc137 Wifi: Improve various things 2016-05-14 18:23:07 +02:00
Bär Halberkamp
70b9f9279c Wifi: fix ending messages 2016-05-14 18:23:07 +02:00
Bär Halberkamp
682a9cefbd Fix lottery giveaway with more than 1 winner 2016-05-14 03:19:59 +02:00
Bär Halberkamp
714a0823f3 Wifi: add a missing </p> 2016-05-14 03:16:04 +02:00
panpawn
a0f8a86d45 Wifi: Escape lottery ending message (#2559) 2016-05-13 03:44:19 +02:00
Bär Halberkamp
fd608b7629 Wifi: Improve lottery ending message 2016-05-12 18:27:00 +02:00
Bär Halberkamp
9b7a76fea6 Wifi: Fix question GAs 2016-05-12 16:11:43 +02:00
Bär Halberkamp
9259c2fe00 Fix a bug in the wifi chat plugin 2016-05-12 13:15:23 +02:00
Guangcong Luo
37f880e9fc Suppress constructor errors
Unless we want to change the syntax for data tables like pokedex.js,
'constructor' will always exist as a table key.

These changes represent the bare minimum to prevent this from
causing too-weird behavior.
2016-05-11 05:07:02 -04:00
Marty-D
4c153afcee Wi-Fi Plugin: Update results messages
Got lost in 2a600596d6
2016-05-08 21:38:34 -04:00
Bär Halberkamp
2a600596d6 Rewrite and improve the wifi giveaway plugin 2016-05-09 01:52:42 +02:00
Vacate
91d19f95d6 Minor wording fixes in /movesearch (#2551) 2016-05-08 03:05:26 +04:00
Marty-D
d62cee0ff8 Wi-Fi Plugin: Update results messages 2016-05-07 15:04:30 -04:00
Guangcong Luo
4a995350bb Shim Array#includes
This also refactors everything to use Array#includes except data
and mods, which are large enough that I'll refactor them later
probably.
2016-05-04 02:55:18 -07:00
Ivo Julca
232785b1d1 DataSearch: handle exceptions in queries 2016-05-02 22:48:07 -05:00
Quinton Lee
b0cef1f17f Follow all player renames in roomgames (#2538)
Fixes various crashes caused by roomgame players changing names outside
of the room
2016-04-30 02:03:05 -07:00
Ivo Julca
22779102cc Lint: Add miscellaneous extra rules
Among the newly added rules, there are quite a few intended to enforce
compliance of CONTRIBUTING.md-blessed idioms, as well as ensure
safe usage of classes and constant bindings.

We are also now enforcing usage of early return in commands.js,
which has 100% compliance as of fd2c45c.
2016-04-25 21:52:21 -05:00
Ivo Julca
c190b006b7 Replace explicit iterable protocol usage by for-of loops 2016-04-25 21:41:35 -05:00
Quinton Lee
78ae2e526f Update /faq and /intro (#2533)
The on-site FAQ and beginner's guide have been moved to a forum thread
to ease maintenance. This removes several entries from /faq because you
can't link to specific sections of a forum post. Unmatched targets now
link to the general FAQ post instead of giving error messages for
somewhat backwards compatibility with removed entries.
2016-04-23 23:42:26 -07:00
urkerab
7b292840aa Add contest conditions to move searches (#2519) 2016-04-17 06:37:09 -07:00
Caleb Young
d02a2edd49 Wifi Plugin: Prevent muted/locked users joining giveaways (#2516) 2016-04-16 06:58:36 +04:00
Caleb Young
4b50059d24 /dexsearch - Prevent LC Ubers being included in LC (#2506) 2016-04-14 04:30:14 +04:00
Guangcong Luo
58a306d7f9 Add roomauth to /whois
This updates /whois to match the trainer card.
2016-04-13 05:41:46 -04:00
Ivo Julca
ea9f7e3bd4 Poll: Add support for HTML in questions 2016-04-12 21:04:29 -05:00
Guangcong Luo
df9997b748 Nicer looking poll buttons 2016-04-11 19:49:15 -04:00
Marty-D
894bc54fef Info: Fix /details display for falsy values 2016-04-08 14:35:03 -04:00
Quinton Lee
dfa2ca22ae Add hh:mm:ss option in Tools#toDurationString (#2493) 2016-04-08 07:14:48 -05:00
Quinton Lee
2b620f1c41 The Studio plugin: fix state importing 2016-04-07 20:16:36 -05:00
Konrad Borowski
580ab7ebd9 Scavengers plugin: Time should be based on /starthunt time (#2492)
The feature in question is for certain ladder gimmicks, and time

should count from beginning of a hunt, rather than entering /joinhunt

command.
2016-04-07 14:35:10 -07:00
panpawn
5ff893b8a5 polls: Make button style remain consistent
Before, if a button text spanned over one line, it would default to the OS buttons.



Using the button class with in-line CSS, this makes the buttons remain consistent regardless of how many lines the button spans for a poll question.
2016-04-06 21:12:04 -07:00
Quinton Lee
475497d2aa Scavengers plugin: show finishing times 2016-04-06 23:10:47 -05:00
SolarisFox
e3b226f8f4 /dexsearch: improve tier seaches 2016-04-06 16:57:53 -07:00
Quinton Lee
0e12b8ae30 Dexsearch: fix input validation 2016-04-06 15:37:42 -05:00
Juanma Serrano
6e51f4aaf0 Smogdex command: Proper link for battle spot singles 2016-04-06 10:51:52 +02:00
SolarisFox
be8ab93e8a /dexsearch: improve input validation 2016-04-06 00:24:19 -07:00
Juanma Serrano
01a6879cd1 Update /smogdex help
It didn't mention you can specify tier
2016-04-05 16:52:29 +02:00
Bär Halberkamp
26beeaabcf Mafia: Improve abstaining 2016-04-05 03:50:27 +02:00
SolarisFox
a9f67a3991 /dexsearch: add 'resists' parameter 2016-04-04 00:24:10 -07:00
Ivo Julca
10bb83bf3c Improvements to command broadcast API
- 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.
2016-04-02 15:46:13 -05:00
Juanma Serrano
77e0a17082 Update /git command: it's only node.js now
io.js has been merged into node.js anyway and all information leads to node.
2016-04-01 11:20:43 +02:00
Bär Halberkamp
84d6d328fc Fix another oversight in randpoke 2016-04-01 03:54:01 +02:00