Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (37 sloc) 1.21 kb
6596e69 Stephen McDonald Moved settings into settings.coffee, fixed client deletion on disconnect...
authored
1
e91cda3 Stephen McDonald Added client-side user list.
authored
2
6596e69 Stephen McDonald Moved settings into settings.coffee, fixed client deletion on disconnect...
authored
3 # Tag/attribs mapping of allowed tags and attributes.
5a9cb35 Stephen McDonald Cleaned up white space.
authored
4 exports.ALLOWED_TAGS =
9ad4245 Stephen McDonald Added markdown handling for usernames and messages.
authored
5 b : []
5a9cb35 Stephen McDonald Cleaned up white space.
authored
6 strong : []
7 code : []
8 hr : []
9 ul : []
10 li : []
9ad4245 Stephen McDonald Added markdown handling for usernames and messages.
authored
11 i : []
5a9cb35 Stephen McDonald Cleaned up white space.
authored
12 em : []
13 blockquote : []
9ad4245 Stephen McDonald Added markdown handling for usernames and messages.
authored
14 img : ["src"]
5a9cb35 Stephen McDonald Cleaned up white space.
authored
15 a : ["href"]
9ad4245 Stephen McDonald Added markdown handling for usernames and messages.
authored
16 center : []
17 font : ["face", "color", "size"]
6596e69 Stephen McDonald Moved settings into settings.coffee, fixed client deletion on disconnect...
authored
18
09716fa Stephen McDonald Add handling for dynamically creating and removing rooms.
authored
19 # Maximum user name length.
20 exports.MAX_USERNAME_LENGTH = 30
21
22 # Maximum room name length.
23 exports.MAX_ROOMNAME_LENGTH = 30
6596e69 Stephen McDonald Moved settings into settings.coffee, fixed client deletion on disconnect...
authored
24
25 # List of available rooms.
d5aaba9 Stephen McDonald Added port to settings.
authored
26 exports.ROOMS = ["Lobby", "Library", "Dining", "Casino", "Gym", "Nightclub"]
6596e69 Stephen McDonald Moved settings into settings.coffee, fixed client deletion on disconnect...
authored
27
d5aaba9 Stephen McDonald Added port to settings.
authored
28 # Port the server will listen on.
29 exports.PORT = if isNaN process.argv[2] then 8000 else process.argv[2]
09716fa Stephen McDonald Add handling for dynamically creating and removing rooms.
authored
30
31 # If true, rooms are dynamically generated when requested.
168b14e Stephen McDonald Changed boolean settings to use Coffeescript's on/off values.
authored
32 exports.ADDABLE_ROOMS = on
a4dcda1 Stephen McDonald Added view for adding dynamic rooms.
authored
33
34 # If true, dynamic rooms are visible in the rooms view.
168b14e Stephen McDonald Changed boolean settings to use Coffeescript's on/off values.
authored
35 exports.ADDABLE_ROOMS_VISIBLE = off
31c1016 Stephen McDonald Added logging for socket messsages.
authored
36
37 # If true, each request is logged to the terminal.
38 exports.LOGGING = on
b0e1265 Stephen McDonald Added a DEFAULT_URL setting.
authored
39
40 # Default URL, one of:
41 # /rooms - List all rooms
42 # /rooms/add - Add a room
43 # /wait - Wait for someone
44 # /match - Join someone waiting
45 # /random - Random match up
c8a5001 Stephen McDonald Added /about URL which parses the README file and renders it as HTML.
authored
46 # /about - Renders README.md
b0e1265 Stephen McDonald Added a DEFAULT_URL setting.
authored
47 exports.DEFAULT_URL = "/rooms"
Something went wrong with that request. Please try again.