Commit Graph

3416 Commits

Author SHA1 Message Date
Cathy J. Fitzpatrick
5a7abe13a8 Fix a bug in the userlist buttons' onclick handler 2013-02-20 18:50:29 -07:00
Cathy J. Fitzpatrick
0330992dcc Delete unused file: /learnsets.js
A version of this file which is used is found in the `data` directory.
2013-02-20 04:26:38 -07:00
Cathy J. Fitzpatrick
15ae1ff16f Disable web access to some more files 2013-02-20 04:16:42 -07:00
Cathy J. Fitzpatrick
64f49813be Move notification.php to the backup directory
`notification.php` is unused, so it's safer to keep it in the
`backup` directory, which is not accessible over HTTP.
2013-02-20 04:10:53 -07:00
Cathy J. Fitzpatrick
6ed5c51aeb Add query string syntax to testclient.html 2013-02-20 03:55:26 -07:00
Cathy J. Fitzpatrick
7917f89a49 Fix for the battle list not updating 2013-02-20 03:06:13 -07:00
Cathy J. Fitzpatrick
2e852de9b1 Fix horizontal scrolling of chat 2013-02-20 00:56:13 -07:00
Cathy J. Fitzpatrick
4f17107ba3 Fix issue with empty element in userlist 2013-02-20 00:12:12 -07:00
Cathy J. Fitzpatrick
8d697b7e6d Fix minor display issue when no users are online 2013-02-19 22:46:09 -07:00
Cathy J. Fitzpatrick
6179c75e9e Better method of updating the user list
Instead of constructing the user list from scratch at regular intervals,
we now construct it only when joining the lobby. Each subsequent join,
part, or rename then adds or removes elements from the user list, rather
than constructing it from scratch.

This change should significantly reduce client lag.
2013-02-19 22:22:12 -07:00
Cathy J. Fitzpatrick
35c5be5a85 Fix a bug in tab completion 2013-02-19 20:08:48 -07:00
Cathy J. Fitzpatrick
1e0efb7612 Add some profiling code 2013-02-19 18:39:46 -07:00
Cathy J. Fitzpatrick
5c763e4606 Temporary change to make client less laggy
Unfortunately, this does introduce 1.4 seconds of new lag when clicking
to view a user's profile, but it's an improvement overall, pending the
development of a more robust solution.
2013-02-19 18:23:27 -07:00
Marty-D
0fa966f47f Fix Fly and Razor Wind's messages. 2013-02-19 16:43:28 -05:00
Cathy J. Fitzpatrick
dfb58aed59 Don't load the client if teams fail to load
If teams fail to load due to some bug, the user may lose their teams
permanently if they save their teams. In avoid to avoid a catastrophe,
we now decline to load the client if teams fail to load.

This should never happen unless a bug is introduced that breaks team
loading.
2013-02-19 01:07:18 -07:00
Cathy J. Fitzpatrick
278479865e Changes to notifications
- don't show a notification if the client has focus
- page title notifications now alternate every 1.5 seconds rather than
  every 0.5 seconds
2013-02-19 00:27:08 -07:00
Cathy J. Fitzpatrick
3b822f05f6 Allow safe proprietary (nonstandard) CSS 2013-02-19 00:01:26 -07:00
Cathy J. Fitzpatrick
369642c72c Fix bug in highlight feature
Because highlight matching was done with a global regular expression,
subsequent calls to `test` started searching after the end of the
previous match, meaning that highlight matches were often misses.
There is no reason for highlight matching to be done with a global
regular expression, so this commit fixes the issue by deleting
option 'g' from the regular expression.

In addition, I have renamed `lobby.regex` to `lobby.highlightRegExp`.
2013-02-18 21:42:33 -07:00
Marty-D
d69053441a Fix Gravity, Smack Down, and remove a few duplicate messages. 2013-02-18 21:40:00 -05:00
Cathy J. Fitzpatrick
2025ba7955 Implement /refreshpage command 2013-02-18 00:02:48 -07:00
Cathy J. Fitzpatrick
4c2526b562 Revert recent changes for now
These changes introduced some unexpected issues.
2013-02-17 23:05:59 -07:00
Cathy J. Fitzpatrick
e2f3b23c6c Fix for some servers on the testclient server chooser 2013-02-17 22:38:26 -07:00
Cathy J. Fitzpatrick
55581d5a48 Add server chooser to testclient.html 2013-02-17 22:35:04 -07:00
Cathy J. Fitzpatrick
34b309d58d Add serverlist action to action.php
The `serverlist` action returns a list of registered servers. It accepts
cross-domain requests, which is safe since it merely returns publicly
available information.
2013-02-17 21:53:02 -07:00
Cathy J. Fitzpatrick
548cd6bc31 Don't show auth buttons to voice users 2013-02-17 21:20:22 -07:00
Cathy J. Fitzpatrick
7aaeedffd6 Changes to mute/ban/kick buttons
- mute/ban/kick buttons are now only shown if the user can use the
  corresponding command. This determination is based on the permissions
  in use on the main server (and hardcoded as such) because the server
  does not currently send the client any information about permissions.
  In particular, regular users will no longer see the buttons when
  viewing their own profile.

- there is now a blank line between a user's IP address and the auth
  buttons.
2013-02-17 21:12:47 -07:00
Cathy J. Fitzpatrick
3b860f6fd5 Better documentation of /highlight and /timestamps 2013-02-17 20:56:13 -07:00
Guangcong Luo
61a6bc5680 Haunter gets a new color 2013-02-15 17:16:20 -08:00
Marty-D
4a6b10bd96 Fix the switch in message for the player's side.
- Makes sure the species name is recorded in the battle log as it was
previously.
2013-02-15 20:10:00 -05:00
Cathy J. Fitzpatrick
37a6159bec Remove cached index.php logging feature
This feature isn't likely to obtain any further useful information.
2013-02-14 19:03:16 -07:00
Marty-D
3030132561 Add support for both types of 'miss' messages. 2013-02-14 16:04:01 -05:00
Cathy J. Fitzpatrick
e7acbff12d Fix for notification on first turn of battle for player 1
Previously, the `yourMove` (etc.) notifications on the first turn of
a battle for player 1 did not include the opponent's name, because
the opponent's side of the battle was not yet initialised. This
commit fixes the issue by delaying the notification until the
opponent's side has initialised.
2013-02-14 00:22:43 -07:00
Cathy J. Fitzpatrick
d0e2902479 Don't clear custom CSS in case of error 2013-02-13 20:29:06 -07:00
Cathy J. Fitzpatrick
263fe976a8 One more customcss.php fix 2013-02-13 14:31:15 -07:00
Cathy J. Fitzpatrick
3555e0831b Fixes for invalidate option 2013-02-13 14:29:13 -07:00
Cathy J. Fitzpatrick
b703b4fe7e Correct invalidation check in customcss.php 2013-02-13 14:17:46 -07:00
Cathy J. Fitzpatrick
c0f8bae979 Fix bug in customcss.php 2013-02-13 14:11:52 -07:00
Cathy J. Fitzpatrick
002addda88 Add invalidate option to force customcss.php to make HTTP request 2013-02-13 14:06:37 -07:00
Cathy J. Fitzpatrick
0121e879b2 Add correct Expires header to customcss.php 2013-02-13 13:24:57 -07:00
Cathy J. Fitzpatrick
f749470a74 Use customcss.php in <link> for custom CSS 2013-02-13 13:08:55 -07:00
Cathy J. Fitzpatrick
092c214128 Fix theoretical race condition in customcss.php 2013-02-13 01:18:19 -07:00
Cathy J. Fitzpatrick
6650291f9b Sanitise custom CSS 2013-02-13 01:12:58 -07:00
Guangcong Luo
a4da67a09f Spread recommender now understands Counter/Mirror Coat 2013-02-12 23:50:15 -08:00
Guangcong Luo
2faa86f94f New naming scheme for CSS 2013-02-12 23:35:34 -08:00
Cathy J. Fitzpatrick
6672afe12a Disable web access to lib/ directory 2013-02-12 23:53:01 -07:00
Guangcong Luo
92f9b95f17 Make sure certain keyboard shortcuts don't apply with modifiers 2013-02-12 19:59:19 -08:00
Guangcong Luo
dc679d9e14 CloudFlare doesn't like 301 redirects (?) 2013-02-12 19:58:45 -08:00
Cathy J. Fitzpatrick
272a076aca Fix coloured output in /learn 2013-02-12 20:28:36 -07:00
Cathy J. Fitzpatrick
db80ef64c7 Fix for room links in /whois and /rooms 2013-02-12 15:18:43 -07:00
Cathy J. Fitzpatrick
20e0a9b677 Fix another bug in tagPolicy 2013-02-12 13:06:29 -07:00