Commit Graph

363 Commits

Author SHA1 Message Date
panpawn
c5b9a4b84f Add pi command (#2866)
I accidentally typed /ip as /pi, and I thought this would be a pretty humorous response.

Yay for meme commands!
2016-11-30 00:07:32 -06:00
Teremiare
fc61df82d7 Prevent locked users from changing the staffintro (#2956) 2016-11-27 16:37:50 -06:00
panpawn
43dd1a8b63 Roompromote: Less hard coding & string standards (#2931)
-Doesn't assume regular rank is just a space
-Doesn't assume that the only room ranks that would give trusted status is driver-bot
-Uses more template strings
-Uses the new standard for a multiline help command format
2016-11-22 01:42:20 -06:00
Bär Halberkamp
f0f010144f Fix /blacklistname 2016-11-22 00:45:43 +01:00
InactiveUser
0b714dd674 Using room title in /hidetext (#2925)
http://prnt.sc/d9q0hs is what I'm trying to go for. I figured trying this since roombans uses the room title as well.
2016-11-20 15:20:09 -06:00
panpawn
95aa220a12 Showblacklist: Check size of room's blacklist (#2891)
This fixes a bug where it would show a blacklist infobox reply as if there were users blacklisted, even if there aren't.
2016-11-14 19:46:54 -07:00
panpawn
b181dd15e4 Add 'did you mean' responses for room/staffinros (#2882) 2016-11-07 23:10:20 -08:00
Guangcong Luo
c37ee8ccc7 Fix replay reporting 2016-11-06 01:58:40 -07:00
Guangcong Luo
cc3fc5c3e2 Fix crq crash 2016-11-04 08:32:39 -04:00
Guangcong Luo
b3d3b13589 Send room rank in /crq userdetails 2016-11-03 23:11:57 -07:00
Guangcong Luo
b63e9b99a4 Minor fixes to emergency mode 2016-11-03 23:11:44 -07:00
PrinceOfPersian
66299b133d Fix broadcast help functions called from !help <cmd> (#2868) 2016-11-01 00:26:44 -05:00
panpawn
430339dccf Showblacklist: Use room title in UI (#2867) 2016-10-31 01:54:15 -05:00
panpawn
042dfca024 Invite: Do not inv to a room someone is in already (#2856) 2016-10-26 18:57:17 -05:00
panpawn
0a93cd1190 Enable announce command in PMs (#2860)
Before the semi-recent PM refactor, `/announce` /would/ work in private messages, this re-enables that functionality.
2016-10-26 18:33:13 -05:00
Guangcong Luo
2604780ec5 Refactor Tools
Tools will be renamed to Dex soon, which is why the code inside Tools
is calling itself "Dex" now, but right now we're just refactoring its
internal code and not officially renaming it yet.

In the meantime, Tools is now an ES6 Class.

A long-standing bug in learnset loading order (the one
test/chat-plugins/datasearch.js tests for) has finally been fixed, so
Tools.includeMods() is no longer necessary to accurately access modded
data.

Tools.mod has been split into Tools.mod(modid) and
Tools.format(format). The issue of Tools.mod being ambiguous about
whether it's passed a mod or a format hasn't been a _bug_ for a while,
but this is still more readable.

Other renames include:

Tools#isLoaded -> Tools#dataLoaded
Tools.includeMods() -> Tools.includeModData()
Tools.preloadMods() -> Tools.includeMods()
Tools.preloadedMods -> Tools.modsLoaded
Tools.moddedTools -> Tools.dexes

Do not just rename your calls of Tools.includeMods() to
Tools.includeModData(). With the learnset loading bug fixed, there's
no reason to use it unless you need direct access to
Tools.dexes[...].data for some reason (you don't, just use
Tools.mod(...).data)
2016-10-21 13:23:21 -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
93af6334f0 Fix invite permissions
Locked users were able to invite.
2016-10-20 21:31:52 -04:00
panpawn
df6cb35580 Mee: Filter out following text (#2835)
Before, `/mee` didn't used to allow for a target that started with a number or letter, as this could lead to impersonation.

Ex: `/mee 2 tests` - if you're name is bobbyuser, then it would appear as "bobbyuser2 tests" in the chat.

This makes it so the the target of `/mee` cannot start with a number or letter.
2016-10-16 23:24:02 -05:00
Teremiare
7aa207e9f5 Fix incorrect character in /modlog (#2840) 2016-10-12 16:59:17 -07:00
Hidden50
99723d6a24 change /modlog: support roomlog links for public room auth (#2831)
By default, only global auth see links to the logs in the modlog.
If Config.roomauthModlogLink is set, this is extended to public room
auth

escape \u2190

This character seems to break when committing with git on windows
2016-10-09 09:26:23 -07: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
2de233e338 Fix broken permission with /showblacklist (#2822)
It would show access denied to those who can't mute in the room, and it would show nothing to say, drivers
2016-10-04 23:52:53 -07:00
panpawn
239e119962 Allow mods to use /stafftopic to not see source (#2817) 2016-10-04 20:47:28 -05:00
panpawn
fc5511f6bc Add userlist command (#2814)
A lot of users have been asking for a userlists command, may it be for bot purposes or for battle room usage.
2016-10-03 20:50:56 -07:00
Bär Halberkamp
a1b69a7b89 Refactor lockdowns (#2808) 2016-10-02 18:52:00 -07:00
panpawn
e5ff60f129 Allow ROs to use /topic to not see source (#2807) 2016-10-02 15:46:31 +04:00
panpawn
99705c7cc1 Rename commands.js -> chat-commands.js (#2805) 2016-10-01 21:37:16 -07:00
Guangcong Luo
08a00d64b1 Refactor chat commands
chat-commands.js is no more, it's been split into command-parser.js,
commands.js, and config/commands.js.

There's also a new API for commands which should be much easier to
use.
2013-05-23 05:25:33 -07:00
Cathy J. Fitzpatrick
1b45a5b409 Guests can't join chatrooms other than the lobby 2013-05-23 00:31:31 -06:00
Cathy J. Fitzpatrick
30283da75c Move config.pkg to parseCommand.package 2013-05-22 20:13:57 -06:00
Guangcong Luo
af585745d4 Support private rooms 2013-05-21 01:29:33 -07:00
Guangcong Luo
8c8cb9e58a Better error messages for invalid team data 2013-05-20 17:04:35 -07:00
Aurora
3ad4f45cec Adding driver symbol to lock message, since drivers can lock too 2013-05-19 19:00:17 +10:00
Cathy J. Fitzpatrick
5c6e3a7a91 Fix crash when demoting offline user 2013-05-18 20:30:43 -06:00
AuroraCR
8df020b179 Update chat-commands.js
adding full stop to warn message
2013-05-18 18:39:35 +10:00
Cathy J. Fitzpatrick
50096104a9 Modchat fixes
- modchat now applies to /announce and /declare
- users can no longer remove modchat unless they can talk in the
  current modchat
2013-05-17 18:51:56 -06:00
Guangcong Luo
75a0241d5e Update default permissions 2013-05-17 14:21:01 -07:00
Guangcong Luo
60ca1a8394 Commands for manually manipulating IP banlist 2013-05-17 14:17:17 -07:00
Cathy J. Fitzpatrick
194e9535e4 Rename config.package to config.pkg
`package` is a FutureReservedWord within the meaning of the spec. Using
it as an identifier is supposed to throw an error in strict mode. It
should not be used as a property name.
2013-05-16 17:52:35 -06:00
Guangcong Luo
37bf5a5a4c Update ban message 2013-05-16 13:08:17 -07:00
Joim
8afd650814 Add hourmute command to the help
Added hour mute command to the help for drivers+
2013-05-16 10:01:40 +03:00
Guangcong Luo
be2aa01504 Timed mutes
Also refactor sendIdentity - it's now handled by users.js like
onRename etc.
2013-05-15 19:48:51 -07:00
Guangcong Luo
d9d0c176b6 Show package.js version in /version 2013-05-14 23:36:50 -07:00
Guangcong Luo
a3d655dcad Clearer lock message 2013-05-12 23:50:26 -07:00
Cathy J. Fitzpatrick
5e7331b464 Fix /partbattle
/partbattle used to be an alias of /joinbattle rather than an alias
of /leavebattle
2013-05-12 23:52:37 -06:00
Cathy J. Fitzpatrick
d28c727789 Remove legacy lobby chat blocking feature 2013-05-12 21:27:22 -06:00
Cathy J. Fitzpatrick
7987b70578 Fix several bugs in /unlock 2013-05-12 16:27:31 -06:00
Guangcong Luo
30a345680c /modchat on shouldn't change modchat settings 2013-05-11 12:40:35 -07:00
Guangcong Luo
ddfbed1947 Re-fix loadbanlist crash 2013-05-11 09:15:18 -07:00