From 4e1da7bbb61cc72fd46bd2fcb82639cc489d9e3d Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Tue, 12 Feb 2013 23:41:50 -0800 Subject: [PATCH] Consolidate CSS classes --- chat-commands.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/chat-commands.js b/chat-commands.js index 7704bee6b3..0e265a1a8f 100644 --- a/chat-commands.js +++ b/chat-commands.js @@ -663,12 +663,12 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { break; } if (config.modchat === true) { - room.addRaw('
Moderated chat was enabled!
Only registered users can talk.
'); + room.addRaw('
Moderated chat was enabled!
Only registered users can talk.
'); } else if (!config.modchat) { - room.addRaw('
Moderated chat was disabled!
Anyone may talk now.
'); + room.addRaw('
Moderated chat was disabled!
Anyone may talk now.
'); } else { var modchat = sanitize(config.modchat); - room.addRaw('
Moderated chat was set to '+modchat+'!
Only users of rank '+modchat+' and higher can talk.
'); + room.addRaw('
Moderated chat was set to '+modchat+'!
Only users of rank '+modchat+' and higher can talk.
'); } logModCommand(room,user.name+' set modchat to '+config.modchat,true); return false; @@ -680,7 +680,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { emit(socket, 'console', '/declare - Access denied.'); return false; } - room.addRaw('
'+target+'
'); + room.addRaw('
'+target+'
'); logModCommand(room,user.name+' declared '+target,true); return false; break; @@ -764,7 +764,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { } LoginServer.disabled = true; logModCommand(room, 'The ladder was disabled by ' + user.name + '.', true); - room.addRaw('
Due to high server load, the ladder has been temporarily disabled
Rated games will no longer update the ladder. It will be back momentarily.
'); + room.addRaw('
Due to high server load, the ladder has been temporarily disabled
Rated games will no longer update the ladder. It will be back momentarily.
'); return false; break; case 'enableladder': @@ -778,7 +778,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { } LoginServer.disabled = false; logModCommand(room, 'The ladder was enabled by ' + user.name + '.', true); - room.addRaw('
The ladder is now back.
Rated games will update the ladder now.
'); + room.addRaw('
The ladder is now back.
Rated games will update the ladder now.
'); return false; break; @@ -964,7 +964,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!groups': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
' + + '
' + '+ Voice - They can use ! commands like !groups, and talk during moderated chat
' + '% Driver - The above, and they can also mute users and run tournaments
' + '@ Moderator - The above, and they can ban users and check for alts
' + @@ -978,7 +978,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!opensource': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
Pokemon Showdown is open source:
- Language: JavaScript
- What\'s new?
- Server source code
- Client source code
'); + '
Pokemon Showdown is open source:
- Language: JavaScript
- What\'s new?
- Server source code
- Client source code
'); return false; break; @@ -986,7 +986,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!avatars': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
Want a custom avatar?
- How to change your avatar
'); + '
Want a custom avatar?
- How to change your avatar
'); return false; break; @@ -996,7 +996,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!introduction': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
New to competitive pokemon?
' + + '
New to competitive pokemon?
' + '- An introduction to competitive pokemon
' + '- What do "OU", "UU", etc mean?
' + '- What are the rules for each format? What is "Sleep Clause"?' + @@ -1010,7 +1010,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!calculator': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd , room , socket, - '
Pokemon Showdown! damage calculator. (Courtesy of Honko)
' + + '
Pokemon Showdown! damage calculator. (Courtesy of Honko)
' + '- Damage Calculator
' + '
'); return false; @@ -1020,7 +1020,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!cap': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
An introduction to the Create-A-Pokemon project:
' + + '
An introduction to the Create-A-Pokemon project:
' + '- CAP project website and description
' + '- What Pokemon have been made?
' + '- Talk about the metagame here
' + @@ -1035,7 +1035,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!othermetas': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
Information on the Other Metagames:
' + + '
Information on the Other Metagames:
' + '- Balanced Hackmons
' + '- Dream World OU
' + '- Glitchmons
' + @@ -1052,7 +1052,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!rule': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
Please follow the rules:
' + + '
Please follow the rules:
' + '- Rules
' + '
'); return false; @@ -1061,7 +1061,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case 'faq': case '!faq': target = target.toLowerCase(); - var buffer = '
'; + var buffer = '
'; var matched = false; if (!target || target === 'all') { matched = true; @@ -1103,7 +1103,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { case '!tiers': showOrBroadcastStart(user, cmd, room, socket, message); showOrBroadcast(user, cmd, room, socket, - '
Smogon tiers:
' + + '
Smogon tiers:
' + '- The banlists for each tier
' + '- Uber Pokemon
' + '- Overused Pokemon
' + @@ -1448,7 +1448,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { lockdown = true; for (var id in rooms) { - rooms[id].addRaw('
The server is restarting soon.
Please finish your battles quickly. No new battles can be started until the server resets in a few minutes.
'); + rooms[id].addRaw('
The server is restarting soon.
Please finish your battles quickly. No new battles can be started until the server resets in a few minutes.
'); if (rooms[id].requestKickInactive) rooms[id].requestKickInactive(user, true); } return false; @@ -1462,7 +1462,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { lockdown = false; for (var id in rooms) { - rooms[id].addRaw('
The server shutdown was canceled.
'); + rooms[id].addRaw('
The server shutdown was canceled.
'); } return false; break; @@ -1512,7 +1512,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { lockdown = false; config.modchat = false; - rooms.lobby.addRaw('
We fixed the crash without restarting the server!
You may resume talking in the lobby and starting new battles.
'); + rooms.lobby.addRaw('
We fixed the crash without restarting the server!
You may resume talking in the lobby and starting new battles.
'); return false; break; case 'crashnoted': @@ -1528,7 +1528,7 @@ function parseCommandLocal(user, cmd, target, room, socket, message) { lockdown = false; config.modchat = false; - rooms.lobby.addRaw('
We have logged the crash and are working on fixing it!
You may resume talking in the lobby and starting new battles.
'); + rooms.lobby.addRaw('
We have logged the crash and are working on fixing it!
You may resume talking in the lobby and starting new battles.
'); return false; break; case 'modlog':