Fix typo that made the /ban command fail.

This commit is contained in:
Guangcong Luo 2011-12-31 03:19:52 -05:00
parent a20116c93d
commit d021d3eaf0

2
app.js
View File

@ -606,7 +606,7 @@ function Room(roomid, format, p1, p2, parentid, ranked)
function parseCommand(user, cmd, target, room, socket)
{
if (cmd === 1 || cmd === 'b')
if (cmd === 'ban' || cmd === 'b')
{
if (!target) return parseCommand(user, '?', cmd, room, socket);
if (user.isMod())