1
0
forked from 0ad/0ad
0ad/source/lobby
elexis ccb534259d Major lobby cleanup.
Create an object holding the handling of all netmessage types.
Display private messages sent by moderators.

Details:
 Switch back the second and third argument of CreateSimpleMessage, so it
relates again to the switch/object.
 Reduce the dimension/nesting of the object/switch from three to two.
 Hence remove the useless "standard" and "internal" value send in the
text field.
 Rename CreateSimpleMessage to CreateGUIMessage
 Use the property "level" instead of "text" for "connect" and
"disconnect".
 Remove the handling of the "connect" event in lobby.js, since it is
never called.
 Translate the disconnect event.
 Add comments and explicit checks to handleMessage and handleMUCMessage
to make obvious where they differ.
 Remove the "message" property from those GUI messages, since it should
just use "text".
 Move the login-fail handling to JS.
 Remove useless sprintf calls from warning messages.
 Inline some variables.
 Add missing semicolons.

This was SVN commit r17581.
2015-12-31 17:08:23 +00:00
..
glooxwrapper Lobby code cleanup. 2015-06-19 17:25:28 +00:00
scripting Fix #3386, patch by elexis. 2015-09-10 05:30:18 +00:00
Globals.cpp Fix building with --without-lobby. Fixes #2249. 2013-11-08 15:28:44 +00:00
IXmppClient.h Fix #3386, patch by elexis. 2015-09-10 05:30:18 +00:00
StanzaExtensions.cpp Lobby code cleanup. 2015-06-19 17:25:28 +00:00
StanzaExtensions.h Lobby code cleanup. 2015-06-19 17:25:28 +00:00
XmppClient.cpp Major lobby cleanup. 2015-12-31 17:08:23 +00:00
XmppClient.h Major lobby cleanup. 2015-12-31 17:08:23 +00:00