home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use LOG for meta messages, errors.
[plomrogue2-experiments]
/
new2
/
rogue_chat.html
diff --git
a/new2/rogue_chat.html
b/new2/rogue_chat.html
index 10e5ee2f5fe0c024a871643fb475aea41ae96a12..bc90c07e72d09ac8b6dc5a51f0c7b26911bbce59 100644
(file)
--- a/
new2/rogue_chat.html
+++ b/
new2/rogue_chat.html
@@
-217,6
+217,8
@@
websocket.onmessage = function (event) {
tui.draw_map();
} else if (tokens[0] === 'LOG') {
tui.log_msg(tokens[1], 1);
tui.draw_map();
} else if (tokens[0] === 'LOG') {
tui.log_msg(tokens[1], 1);
+ } else if (tokens[0] === 'META') {
+ tui.log_msg(tokens[1]);
} else if (tokens[0] === 'UNHANDLED_INPUT') {
tui.log_msg('unknown command');
} else if (tokens[0] === 'GAME_ERROR') {
} else if (tokens[0] === 'UNHANDLED_INPUT') {
tui.log_msg('unknown command');
} else if (tokens[0] === 'GAME_ERROR') {