]>
jfr.im git - irc/quakenet/qwebirc.git/blob - static/api.js
3 * var qwebirc = new QWebIRC(document.getElementById("myiframeid"));
5 * qwebirc.say("hi there mr wibbles");
9 var QWebIRC = function(element
) {
11 var send = function(message
) {
12 element
.src
= element
.src
.split("#")[0] + "#qwmsg:" + counter
++ + ":" + message
.length
+ ":" + encodeURIComponent(message
);
15 this.say = function(message
) {
16 send("CMD SAY " + message
);