Commit Graph

300 Commits

Author SHA1 Message Date
Kris Johnson
ed4227a22d info.js: update /smogdex (#3070) 2017-01-02 10:27:43 -08:00
Bär Halberkamp
0c4f648ba6 Make ip-based room punishments show up on /ip 2016-12-30 02:58:03 +01:00
Bär Halberkamp
37205d9b24 Implement /sharedip (#2870)
* Implement /markshared

* Refactor /whois ips to two lines

* Refactor splitTarget
2016-12-25 14:26:17 -08:00
Spandan
36c1e35626 Update /om (#3043)
This one links to the new OM C&C forum.
2016-12-22 23:52:41 +04:00
Spandan
6a1624603e Update /om (#3042)
It should redirect to the Gen 7 OM forums
2016-12-22 01:54:57 +04:00
Ana Rita Torres
8d9b980cb9 Add servertime command (#3038) 2016-12-19 07:53:17 -08:00
Marty-D
3c9d6c2687 Correct crit ratio boosting Z-Effect 2016-12-18 11:06:55 -05:00
urkerab
1f9a6193df Don't match against generation prefix if it wasn't provided (#3020) 2016-12-13 02:21:28 -08:00
panpawn
7b4a482373 Data: Remove unneeded constructor hack check (#3019) 2016-12-11 20:34:55 -08:00
spekss
21d6bd8521 Add /tour banlist in /roomhelp (#3006)
* Add /tour banlist in /roomhelp
2016-12-11 21:24:35 +01:00
panpawn
51c6567975 Standardize using <br /> instead of variations (#3009)
Across PS, in most places we use <br /> - however, in some other places we used <br> and in some <br/>.  This standardizes that to simply be <br />, since that's what we use in the majority of places.
2016-12-11 04:34:07 -05:00
panpawn
7c12efc594 Checkpunishments: Mark truly offline users only (#2995)
The user object could of just not yet expired, but they also might not be online, which is why this is necessary
2016-12-06 12:31:51 -06:00
Charlie Kobayashi
6a7d27e6ac checkpunishment: Fix checking for offline users (#2991)
- It returns nothing in the case the user does not exist in the map
2016-12-05 15:11:55 -06:00
asgdf
2d2c4d1f06 Fix room punishment checking (#2990) 2016-12-05 14:45:10 +01:00
Bär Halberkamp
71b8ee0f87 Don't display "(offline)" for online users in /checkpunishment 2016-12-03 17:55:28 +01:00
panpawn
62760c3836 Rename unclear variable in Chat#toDurationString (#2971)
This renames 'limit' -> 'precision'.
2016-11-30 19:56:19 -06:00
Marty-D
ed86f0bad4 Remove Contest categories from move details
They don't exist anymore.
2016-11-29 22:12:36 -05:00
Bär Halberkamp
8fce8c2633 Refactor /whois and /checkpunishment (#2967)
Also add a Punishment monitor
2016-11-29 19:18:24 -06:00
panpawn
62d6800eff Whois: Add hover room title to battle rooms (#2960)
This will tell a user who the battle is against (if it's a battle room) by hovering over it, kind of like how user-popups work.
2016-11-29 13:13:05 -06:00
Marty-D
1ddf9180b3 Add Z-Move info to /dt 2016-11-24 18:50:43 -05:00
InactiveUser
0a7689b6c9 Reword htmlbox help (#2910)
* Reword htmlbox help

I think the way it was before kind of confusing, especially with the not rank part, hopefully this helps?

* Removed *
2016-11-22 13:01:58 -06:00
The Immortal
e8cac27e55 Fix b137faf 2016-11-20 05:24:09 +04:00
Bär Halberkamp
b137faf5ed Make using 'max' in /statcalc also set boosting nature 2016-11-20 01:27:11 +01:00
Ivo Julca
4fa6c5499b Build: Fix issues reported by the latest Eslint version 2016-11-17 14:27:39 -05:00
Bär Halberkamp
61b03fff04 Fix /checkpunishment giving results for names with toId(target) === '' 2016-11-15 16:03:53 +01:00
Bär Halberkamp
ba7470f3eb Show the command that's actually being used when failing a permission check in /whois 2016-11-15 16:03:53 +01:00
panpawn
fae82aa78f Update a few help commands (#2877)
-Moves groupshelp up a line, and also slightly reword it
-Moves statcalchelp up a line
2016-11-07 23:17:29 -08:00
etienne maury
5eb4c4a42e add room rank and global rank on /groups (#2875) 2016-11-05 03:06:40 -07:00
panpawn
da7fbe031b Checkpunishment: Don't use target id in UI (#2863)
This makes it more streamlined to how `/whois` looks
2016-10-29 00:04:20 -05:00
Guangcong Luo
22c6342c00 Support offline users in /alts
/alts now delegates to a new command /checkpunishment, if passed an
unknown username. This allows mods to check offline users for active
punishments.
2016-10-23 22:00:49 -04:00
Nixola
a99992c14c Added third type to /weakness (#2851)
* Added third type to /weakness
In case of Trick-or-Treat or Forest's Curse, a pokémon can have three types. I updated the /weakness command to reflect that.

* Fixed Travis' warning and error
2016-10-22 18:36:41 -05:00
Guangcong Luo
87c41eb67c Rename simulator.js to room-battle.js
simulator.js doesn't actually contain the simulator, but is really just
an implementation of battles in the RoomGame interface.

Renames:
`Simulator.Battle` -> `Rooms.RoomBattle`
`Simulator.BattlePlayer` -> `Rooms.RoomBattlePlayer`
`Simulator.SimulatorManager` -> `Rooms.SimulatorManager`
`Simulator.SimulatorProcess` -> `Rooms.SimulatorProcess`
`Simulator.create` -> no longer exists, use `new Rooms.RoomBattle(...)`
2016-10-21 13:21:12 -05:00
Guangcong Luo
d84d06a8d2 Add !optionsbutton and !soundsbutton 2016-10-20 21:31:52 -04:00
The Immortal
7193860ac1 Analysis: Fix BH links 2016-10-16 05:24:12 +04:00
panpawn
8ab309ae74 Add missing linebreak in /opensource (#2833) 2016-10-10 03:21:54 +04:00
panpawn
76285471a0 Fix double errorReply while muted in some cases (#2830)
Due to the recent refactor that changed how `this.canTalk` works, if a user was muted in a room, and then tried to do a command that wasn't allowed to be used if they can't talk, it would send two replies: "You are muted and cannot talk in this room." AND "You cannot do this while unable to talk."

This makes it so that if you're using a command while muted that isn't allowed to be used if you can't talk, it will just use the "You are muted and cannot talk in this room." errorReply.
2016-10-08 20:58:16 -07:00
panpawn
420e28ce91 Chat: Tell locked users their lock duration (#2823)
This also adds `Punishments#checkLockExpiration` - mostly for this, but also to remove some repetitive code in the whois command as well.
2016-10-04 23:52:19 -07:00
panpawn
7022704bf8 Add Dex repository to /opensource (#2809)
Apparently, a lot of people still don't know this is a thing, so this might be a good way of making people know it's actually a thing.
2016-10-02 22:04:58 -07:00
Guangcong Luo
f95276573a Fix crash in /bugs 2016-10-02 13:35:38 -07:00
sirDonovan
fafb2c1099 Fix crashes in datasearch commands
Loading data on the main process was accidentally removed in
64fa2b9801
2016-10-02 15:08:03 -05:00
The Immortal
88a1961f86 Remove Other Metagame of the Month link from /om 2016-10-02 18:10:50 +04:00
Guangcong Luo
d6f5404e7e Rename CommandParser to Chat
We had a lot of discussion in Dev and a somewhat-close poll, but in
the end "Chat" was a better name than "Messages", and also has the
advantage of being shorter (which is nice for Chat.html and
Chat.plural which should be short).
2016-09-30 18:31:15 -07:00
Guangcong Luo
da1b318707 Move text processing from Tools to CommandParser
The following functions have been renamed:

- Tools.html to CommandParser.html
- Tools.plural to CommandParser.plural
- Tools.escapeHTML to CommandParser.escapeHTML
- Tools.toDurationString to CommandParser.toDurationString
- Tools.toTimeStamp to CommandParser.toTimestamp
  (notice the lowercase 's')

This is in preparation for a rename of Tools to Dex (by removing the
non-dex-related functions) and a rename of CommandParser to either
Messages or Chat.
2016-09-30 18:04:13 -07:00
Guangcong Luo
b4a511a1e6 Update /rules
- Fix crash in PMs
- Permission is now `editroom`
- Now tells other mods that room rules have been updated
2016-09-30 00:09:32 -07:00
panpawn
f5271bb753 Refactor confirmed status to trusted (#2798)
It should be noted that various user functions have been renamed as well to reflect this change as well.
2016-09-29 13:02:14 -07:00
Guangcong Luo
64fa2b9801 Replace CommandParser.globalPattern
I honestly don't know exactly why it exists (its commit didn't exactly
explain it), but Slayer95 thinks it's high-priority so this solution
should probably be sufficient?

?_?
2016-09-29 12:42:58 -07:00
Guangcong Luo
6b077d9453 Fix crash in /rules 2016-09-28 18:57:57 -04:00
Guangcong Luo
3763ef80ea Make !om search less spammy
This is the source of the infamous !om g issue.

The new design looks better, anyway, and allows !formatshelp to also
be braodcast since it's no longer spammy.

!om searching will also now only search OMs.
2016-09-26 17:25:53 -04:00
Quinton Lee
3822e0c96a Update guide links in /roomhelp 2016-09-26 15:44:20 -05:00
Guangcong Luo
ed08b145fc Update roomhelp permissions
Can now only be broadcast by ROs, leaders, and admins

Closes #2784
2016-09-25 23:47:00 -04:00