Commit 970c24c1 authored by Tom Lake's avatar Tom Lake

Handle 'asks' messages

Also fixes a minor typo in the unknown type message
parent 6c4b02dd
......@@ -268,12 +268,10 @@ function handleEvent(event) {
mw.print(newTimestamp + msg.from_name + ": " + "-(" + msg.excluded_name + ") " + msg.text);
break;
case "says":
// handle pm's/dm's
mw.print(newTimestamp + msg.from_name + " " + colourWord("says","W-") +": " + msg.text);
break;
case "asks":
case "whispers":
// handle pm's/dm's
mw.print(newTimestamp + msg.from_name + " " + colourWord("whispers","W-") +": " + msg.text);
mw.print(newTimestamp + msg.from_name + " " + colourWord(msg.type,"W-") +": " + msg.text);
break;
case "gag":
// handle gsgs
......@@ -317,7 +315,7 @@ function handleEvent(event) {
default:
// leave the message alone if we don't
// have rules for it
mw.print(newTimestamp + "ERORR Unknown msg type: " + msg.type + ' ' + msg.from_name + ': ' + msg.text);
mw.print(newTimestamp + "ERROR Unknown msg type: " + msg.type + ' ' + msg.from_name + ': ' + msg.text);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment