var messages = JSON.parse(rtxt);
if (messages != null) {
rcreceivemessages(server, messages);
- window.parent.postMessage(rtxt, "*");
delay = 40;
if (messages.length >= 1 && "Time" in messages[messages.length-1]) {
since[server] = messages[messages.length-1]["Time"];
status_indicator.setAttribute("class", "sad");
document.getElementById("status").appendChild(status_indicator);
}
- if (rcnick() == 'anonymous') {
- rcaddmessagetohistory("-!- Set your nick with /nick");
- }
}
function rcsend(d, message) {
// Say the message
var d = rcaddmessagetohistory(message);
rcsend(d, message);
-
- // Remind people to set their nick
- if (rcnick() == 'anonymous') {
- rcaddmessagetohistory("-!- Set your nick with /nick");
- }
}
}
//--><!]]></script>