Commit Graph

451 Commits

Author SHA1 Message Date
Guangcong Luo
df66ef86fc Support a non-numeric avatar
bw2elesa is basically an easter egg avatar for anyone who follows
us on GitHub... not like it matters; I bet most of you already have
customs anyway...
2015-07-24 03:35:57 -04:00
Ivo Julca
b2b9dc75c0 Fix HP Percentage Mod 2015-07-20 14:44:56 -05:00
Guangcong Luo
757ff95358 Notify users about unlocks 2015-07-18 14:31:41 -04:00
Guangcong Luo
77dfc68445 Unlink/hide spammer usernames through renames
This also adds a new variable from .splitTarget, .inputUsername,
which represents the username before following the user through
renames.
2015-07-18 14:31:41 -04:00
Ivo Julca
0ec8eeab21 Finish implementation of /formatshelp
- Now mostly merged with /tiers and /othermetas.
- Format descriptions are arrays of HTML strings, which are joined to be displayed.
2015-07-18 05:00:10 -05:00
Ivo Julca
d6e7e582c0 Improve room punishments
- Only display popups to users who are currently in the room. This prevents abuse.
- Allow warns to be used in private rooms with own authorities.
- Hour-mutes now display "1 hour" rather than "60 minutes".
- Display a button to list room staff in the roomban popup.
2015-07-14 03:23:58 -05:00
Guangcong Luo
92fa96d0fe Support roombanning users after name-change 2015-07-11 16:35:41 -04:00
Ivo Julca
15167d3909 Only report V8 memory usage in /memusage
It will no longer freeze the server when estimating Tools size.
2015-07-10 00:30:12 -05:00
Guangcong Luo
77a45a3bac Don't gmodlog DNSBL/spammode unlocks 2015-07-09 05:50:47 -04:00
Ivo Julca
a0d2a59875 Fix replays being uploaded under an alt after player rename 2015-07-07 03:18:08 -05:00
Guangcong Luo
ebc82089ec Specify roomid in mute popup 2015-07-05 13:07:41 -04:00
panpawn
6f95276fa4 Make mute popups modal
Since lock and ban popups are modal, I see no reason why mute popups shouldn't be as well.
2015-07-05 05:02:33 -04:00
Austin
7287d44256 Add # for users being able to declare in /declarehelp 2015-07-03 02:09:47 -06:00
Guangcong Luo
8ecfa1ea1d Fix /editbattle documentation 2015-07-02 15:12:24 -04:00
Guangcong Luo
415bd29565 Fix style in /editbattle 2015-07-02 15:09:56 -04:00
Guangcong Luo
431509636e Add /editbattle boost 2015-07-02 15:07:44 -04:00
Guangcong Luo
714bd90049 Improve /editbattle
- Support /editbattle pp
- Support , after editbattle command
- Support shorter command names
2015-07-02 15:00:59 -04:00
Guangcong Luo
d25f08756e Fix bug in /editbattle 2015-07-02 14:44:33 -04:00
Guangcong Luo
dd36f73606 New command /editbattle 2015-07-02 14:41:48 -04:00
Guangcong Luo
c95b76a6cd Fix /help for chat plugins
It was broken by the .baseCommands change
2015-06-30 21:12:12 -04:00
Guangcong Luo
f995150332 Improve modlog formatting
Modlog is now formatted in HTML! Oh my!
2015-06-30 03:42:48 -04:00
Guangcong Luo
7978f5b1d3 Fix /hotpatch chat
/hotpatch chat would sometimes not hotpatch chat. Somehow, the
require parent of './commands.js' would be itself instead of
'./command-parser.js'. I don't really understand how it works
particularly well, but in theory this should fix it.
2015-06-30 03:35:10 -04:00
Guangcong Luo
adc8783878 Increase default modlog length to 20 2015-06-30 03:30:38 -04:00
Guangcong Luo
9dc80a3567 Update PMs to use errorReply
All PM errors are now updated to use errorReply, meaning that they
are shown inline instead of creating a popup window.
2015-06-30 03:26:56 -04:00
Guangcong Luo
2c7ad95635 New command API this.errorReply
this.errorReply sends a red error message inline. The main special
thing is that it takes advantage of our new /error support in PMs to
send inline errors in PMs as well.
2015-06-30 03:09:02 -04:00
Guangcong Luo
a533736495 Global drivers can now see IPs in modlog
Modlog only reveals IPs for banned users, and global driver quality
has been improving lately, so this should be reasonably safe.
2015-06-30 03:06:57 -04:00
Guangcong Luo
55423256fa Lock and ban popups are now modal
This is to make sure people don't accidentally miss them by clicking
outside the box.
2015-06-28 00:57:28 -04:00
Guangcong Luo
4811648421 Make the modlog popup wider 2015-06-27 22:45:31 -04:00
Guangcong Luo
a61bd2d1d8 /modlog in staff room defaults to global
There's /modlog staff, if for whatever reason you need a modlog for
the staff room specifically.
2015-06-27 22:44:53 -04:00
Guangcong Luo
aeacf464e1 Small lock/ban/fr refactor
This takes advantage of the new CommandParser changes: lock/ban
now return true on success. The other changes are comparably
minor: fr now uses splitTarget, and lock/ban save the last
used userid if the current userid is a guest.
2015-06-27 22:44:04 -04:00
Guangcong Luo
e35ed8ebd5 Refactor login
finishRename was a really huge function. This splits it into three
much more manageable functions with more useful names.
2015-06-25 04:43:34 -04:00
Ivo Julca
9b1b078534 Command API: this.run executes a command with current parameters
- Provides a straightforward way to add command aliases with own help entries.
- Encapsulates try-catch blocks.
2015-06-24 18:35:58 -05:00
Guangcong Luo
c6c7503d45 /ban no longer lists guest alts 2015-06-23 23:14:58 -04:00
Bryan AA
16b06ca634 Add new commands in /help
- Add /hourmute and /modnote in Driver (%) Help. 
- Add /modchat in Moderator (@) Help.
2015-06-21 14:44:20 -06:00
Bryan AA
647e29e500 Improve help provided by commands
Send a help reply if there is no target in /roomowner and /roomdeowner command.
Add 2 new aliases for pm faq.
2015-06-20 11:52:38 -06:00
Bryan AA
a6a57c6e5c Add "this.parse" on thestudio.js commands and fix /demote command 2015-06-19 13:04:00 -06:00
Guangcong Luo
f74831822b /roomintro adds /roomintro to source
If you're an RO/leader/admin, /roomintro's source section now starts
with /roomintro, which makes it much easier to edit roomintros.

Using "/roomintro /roomintro " ignores the second /roomintro, in
case anyone's muscle memory automatically adds /roomintro before
copy/pasting the source over.
2015-06-16 19:12:21 -04:00
Guangcong Luo
ad8a814a5c Merge pull request #1973 from Bryan-0/patch-30
Fix some commands
2015-06-16 17:57:38 +00:00
Bryan AA
63fa288880 Fix some commands 2015-06-16 11:32:46 -06:00
Guangcong Luo
b792fa64e9 Merge pull request #1867 from SolarisFox/patch-7
Mute refactor
2015-06-16 07:40:57 +00:00
Guangcong Luo
2ce7af38bf Merge pull request #1963 from Bryan-0/patch-27
Add a better help for /avatar
2015-06-14 17:55:29 +00:00
Bryan AA
82ed2e0af2 Add a better help for /avatar 2015-06-14 11:46:50 -06:00
Konrad Borowski
bca61b89a1 Sort authority in /auth by ID
This prevents sort from being ASCII-betical causing lowercase nicks
to appear after uppercase nicks.
2015-06-14 12:46:52 +02:00
SolarisFox
09be77d0b8 Mute refactor 2015-06-14 00:16:44 -07:00
Bryan AA
1442feb34f Add more info in /ignorepms and /unignorepms 2015-06-13 13:51:13 -06:00
Guangcong Luo
cf112d1d3c Merge pull request #1945 from Slayer95/jscs-rules
Implement custom JSCS rules to enforce code style
2015-06-13 06:18:24 +00:00
Bryan AA
1085416da3 Add /signout as a alias of /logout 2015-06-12 18:52:11 -06:00
Bryan AA
4e3acb74c9 Add "#" on requires 2015-06-12 18:34:46 -06:00
Bryan AA
b0c9c04816 Add /roomstaff as a alias of /roomauth 2015-06-12 13:33:21 -06:00
Guangcong Luo
4515625335 Clarify error message for joining private rooms 2015-06-12 15:13:57 -04:00