Commit Graph

23714 Commits

Author SHA1 Message Date
Cathy J. Fitzpatrick
aee8423fa5 Implement logging of the lobby
If `loglobby` is enabled in the config file, lobby logs are written
to logs/lobby/yyyy-mm/yyyy-mm-dd.txt. Lobby logs are kept in their own
subdirectory of the 'logs' directory in order to avoid a namespace
clash with a format named 'logs', and also because there are many
reasons why one might want to copy the battle logs without copying
the lobby logs.
2013-02-14 11:47:59 -07:00
Cathy J. Fitzpatrick
ffc990cd72 Very slightly refactor generation of formatListText
This was previously done in its own block, presumably because the
`formatListText` and `curSection` variables are not used outside
of the block. However, a block does not introduce a new variable
scope in JavaScript, so it makes more sense to use a function.
2013-02-14 10:30:37 -07:00
Guangcong Luo
abd320cc6e Illusion fix:
- A previous change to Illusion + Mold Breaker interaction broke some UI
  for tracking Illusion status.
- This changes Illusion again, to have its clearing be hardcoded... which
  isn't a big deal, because most of the rest is hardcoded anyway.
- This also fixes a minor animation bug so Illusion clears before taking
  damage, not after
2013-02-13 14:38:52 -08:00
Marty-D
b4c5240633 Make sure Future Sight can begin against Dark-types. 2013-02-13 15:26:22 -05:00
Guangcong Luo
4e1da7bbb6 Consolidate CSS classes 2013-02-12 23:41:50 -08:00
Guangcong Luo
c479f8563f Learnset fixes when breeding with Tyrogue evos
- We introduce a new source type: C
- C sources aren't valid direct sources for moves, but they're valid when
  looking for breeding targets
- basically, they're a workaround to avoid a complicated chainbreeding
  algorithm
2013-02-12 20:51:23 -08:00
Guangcong Luo
0dfc2c9b23 More learnset checking for egg moves
- instead of a free pass, level-up moves from a level higher than the
  current level is checked as an egg move
(other ways of learning a level-up move are still available)
2013-02-12 20:30:28 -08:00
Guangcong Luo
08eee348ae Learnset checker: LC fixes
- pokemon can only learn level-up moves before their current level
  if they can breed
- gen 3 pomeg glitch implemented
- gen 3 pomeg glitch (and any other gen 3 trick) disallowed for gen 4
  abilities on pokemon that haven't evolved
2013-02-12 20:16:08 -08:00
Cathy J. Fitzpatrick
6ecc0a717a Fix coloured output in /learn 2013-02-12 20:31:40 -07:00
Guangcong Luo
2eb097c107 NEXT: buff Telepathy 2013-02-12 15:17:57 -08:00
Guangcong Luo
af9adc0b8e NEXT: change Scald 2013-02-12 14:20:41 -08:00
Cathy J. Fitzpatrick
7b6a53bebe Fix for room links in /whois and /rooms 2013-02-12 15:19:05 -07:00
Guangcong Luo
84717c238a Moody is banned in Smogon Doubles 2013-02-12 12:32:36 -08:00
Guangcong Luo
6f59ae5271 Custom games now allow levels up to 1000 2013-02-12 12:31:55 -08:00
Guangcong Luo
f280a6ebdd NEXT: nerf Bounce 2013-02-12 04:35:08 -08:00
Joim
2c57fdcd91 Add admin commands to help
The help lacks information about current administrator
commands that may come in handy to know to new admins
who set up their own server.
2013-02-12 05:34:05 -07:00
Cathy J. Fitzpatrick
8d67440c77 Use raw rather than chatmsg-raw 2013-02-12 05:04:14 -07:00
Cathy J. Fitzpatrick
ca58fd881e Rename challenge-string message to challstr 2013-02-12 05:00:11 -07:00
Cathy J. Fitzpatrick
1f045e5c00 Rename register-account message to askreg 2013-02-12 04:58:49 -07:00
Cathy J. Fitzpatrick
2f6c9ac9a1 Only send register-account to user who won (!) 2013-02-12 04:32:49 -07:00
Cathy J. Fitzpatrick
0adc5b1382 Use pipe protocol for register-account instead 2013-02-12 04:29:16 -07:00
Cathy J. Fitzpatrick
9aa45facaf Fix typo 2013-02-12 04:24:24 -07:00
Cathy J. Fitzpatrick
957e09365b Always show the register message in the battle room 2013-02-12 04:20:09 -07:00
Cathy J. Fitzpatrick
f3690915e8 Fix for the register account link 2013-02-12 04:15:14 -07:00
Cathy J. Fitzpatrick
05b769d9af Changes re: client no longer running arbitrary server CSS/JavaScript
As of Zarel/Pokemon-Showdown-Client@5950a2dbbd, the client will no
longer run arbitrary JavaScript or `style` tags received from the
server. This commit makes various changes in response to this:

- Various chat commands now send `class` attributes rather than
  `style` attributes.

- The /redirect command is removed.

- The /banredirect command is removed.
2013-02-12 02:56:59 -07:00
Marty-D
47f678bb50 Add messages for Suction Cups and Ingrain. 2013-02-11 17:22:53 -05:00
TheImmortal
5945d5d0e4 Update viable moves
A number of Pokemon had moves that were illegal
2013-02-11 22:47:19 +04:00
Cathy J. Fitzpatrick
2b5319d028 Fix typo in /help highlight 2013-02-11 04:09:50 -07:00
Cathy J. Fitzpatrick
b467b2452f Add optional second parameter to /avatar to hide output 2013-02-10 21:39:08 -07:00
Cathy J. Fitzpatrick
2ffafaf837 Remove one outdated call to rename 2013-02-10 14:20:40 -07:00
Cathy J. Fitzpatrick
22770b0117 Fix setuid feature
The call to setuid() was previously after the simulator and verifier
processes were spawned, so both those processes always ran as the user
who started the process (which would have been `root` if the setuid
feature was being used), rather than the setuid user. In particular,
this meant that the >>> battle dev console could be used to execute
arbitrary code as root (if the server was started as root).

This commit makes the setuid() feature work as advertised, but it
still should not be used for the reasons given in config-example.js.
Instead of using setuid, start the server as an unprivileged user and
use port forwarding (e.g. iptables ) to use the port(s) you prefer.
2013-02-09 19:45:29 -07:00
Cathy J. Fitzpatrick
cd5954d32c Delete call to nodetime.profile 2013-02-09 04:29:20 -07:00
Cathy J. Fitzpatrick
21f7b105d3 Remove some unnecessary code from app.js 2013-02-09 04:28:01 -07:00
Cathy J. Fitzpatrick
1926153837 Fix detection of offline users for kick/redirect/pm
This fixes a bug introduced by @55361225120b.
2013-02-09 01:45:06 -07:00
Cathy J. Fitzpatrick
4192289269 Refactor: Don't require client to send username in join message 2013-02-08 22:33:41 -07:00
Cathy J. Fitzpatrick
15102cf26f Refactor: Connection objects don't need a username 2013-02-08 22:09:40 -07:00
Cathy J. Fitzpatrick
bf04952af7 Refactor: Don't deal with Connection objects outside of users.js 2013-02-08 22:09:40 -07:00
Cathy J. Fitzpatrick
da78749c82 Refactor: Rename Person to Connection 2013-02-08 22:09:39 -07:00
Marty-D
553dc1f9e2 Fix some move messages. 2013-02-08 17:01:51 -05:00
The Immortal
87345fed92 Merge pull request #164 from Joimer/patch-2
Update /othermetas command for seasonal
2013-02-08 03:24:49 -08:00
Cathy J. Fitzpatrick
e7516cd0a2 Merge pull request #165 from rissole/powerswap-msg-fix
Fixed Power Swap message
2013-02-08 01:54:00 -08:00
rissole
b124674137 Fixed Power Swap message 2013-02-08 20:47:47 +11:00
Cathy J. Fitzpatrick
e3fdd4b4fc Disable tokenhosts feature by default
With the advent of challenge-response authentication, the `tokenhosts`
feature is no longer necessary. It can still be used for slightly
increased security, but since it makes it harder for users to get
the server up and running, it is now disabled by default.
2013-02-08 01:14:38 -07:00
Cathy J. Fitzpatrick
627ca0d38d New login server public key 2013-02-08 01:13:12 -07:00
Cathy J. Fitzpatrick
7dbd8cfec5 Implement challenge-response authentication 2013-02-08 00:52:42 -07:00
Cathy J. Fitzpatrick
f28955d711 Fix crash in verifier.js
This prevents the verifier process from crashing if the signature
is not a valid hex string.
2013-02-08 00:04:27 -07:00
Marty-D
6a10746c34 Fix Jynx for Seasonal Ladder. 2013-02-07 21:45:35 -05:00
Guangcong Luo
7c32eded3c Quite a few NEXT changes:
- Drain Punch is restored
- Focus Blast is nerfed for everyone except Infernape (use HP Fighting)
- Shadow Ball is buffed to compensate
- Also Mismagius and Gengar get Cursed Body
- Which now works like Aftermath but with Curse instead of damage
- Also Dizzy Punch gets a buff
2013-02-07 14:59:07 -08:00
Marty-D
147a3f0fec Add the last Pledge move messages. 2013-02-07 12:07:09 -05:00
Marty-D
01f304a6dc Fix Mold Breaker's interaction with Illusion. 2013-02-07 09:54:15 -05:00