$(gateway).bind("onpart", front.onPart);
$(gateway).bind("onkick", front.onKick);
$(gateway).bind("onquit", front.onQuit);
+ $(gateway).bind("onmode", front.onMode);
$(gateway).bind("onwhois", front.onWhois);
$(gateway).bind("onsync", front.onSync);
$(gateway).bind("onchannel_redirect", front.onChannelRedirect);
$(gateway).bind("onctcp_request", front.onCTCPRequest);
$(gateway).bind("onctcp_response", front.onCTCPResponse);
$(gateway).bind("onirc_error", front.onIRCError);
+ $(gateway).bind("onkiwi", front.onKiwi);
this.buffer = [];
front.joinChannel($(this).text());
return false;
});
+
+
+
+ for(var i in plugins) plugs.loadPlugin(plugins[i]);
},
//gateway.raw('TOPIC ' + front.cur_channel.name + ' :' + msg.split(' ', 2)[1]);
}
break;
+
+ case '/kiwi':
+ gateway.kiwi(front.cur_channel.name, msg.substring(6));
+ break;
+
default:
//front.cur_channel.addMsg(null, ' ', '--> Invalid command: '+parts[0].substring(1));
gateway.raw(msg.substring(1));
onCTCPResponse: function (e, data) {
},
+
+ onKiwi: function (e, data) {
+ //console.log(data);
+ },
onConnect: function (e, data) {
if (data.connected) {
front.cur_channel.addMsg(null, data.nick, 'idle for ' + data.idle + ' seconds', 'whois');
}
},
+ onMode: function (e, data) {
+ console.log(data);
+ },
onUserList: function (e, data) {
var ul, nick, mode;
if (front.tabviews[data.channel.toLowerCase()] === undefined) {