This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var net = require('net'), | |
tls = require('tls'), | |
util = require('util'), | |
_ = require('lodash'), | |
EventEmitter2 = require('eventemitter2').EventEmitter2, | |
EventBinder = require('./eventbinder.js'), | |
IrcServer = require('./server.js'), | |
IrcChannel = require('./channel.js'), | |
IrcUser = require('./user.js'), | |
Socks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// kiwi.plugins.load("/assets/file_upload.html") | |
$script("//api.filepicker.io/v1/filepicker.js", function () { | |
var network = kiwi.components.Network(); | |
var control = kiwi.components.ControlInput(); | |
filepicker.setKey("AY8oiDSeTdaugLaTPYNBVz"); | |
function uploaded(files) { | |
var area = $("#kiwi #controlbox textarea") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Build up an object of symbols here from prefixes.. | |
var symbols = {'~': '~', '@': '@'}; | |
if (that.irc_connection.options.PREFIX) { | |
for (i = 0; i < member.length; i++) { | |
if (symbols[member.charAt(i)]) { | |
modes.push(symbols[member.charAt(i)]); | |
} else { | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getConnectionFamily(this.socks.host, function (err, family, host) { | |
var outgoing; | |
if ((family === 'IPv6') && (global.config.outgoing_address.IPv6) && (global.config.outgoing_address.IPv6 !== '')) { | |
outgoing = global.config.outgoing_address.IPv6; | |
} else { | |
outgoing = global.config.outgoing_address.IPv4; | |
} | |
if (this.socks) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kiwiModules = require('../server/modules'); | |
var module = new kiwiModules.Module('proxy_checker'); | |
module.on('irc connecting', function (event, event_data) { | |
event.wait = true; | |
var client_addr = event_data.connection.state.client.websocket.meta.real_address; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_kiwi.view.Channel = _kiwi.view.Panel.extend({ | |
events: function(){ | |
var parent_events = this.constructor.__super__.events; | |
if(_.isFunction(parent_events)){ | |
parent_events = parent_events(); | |
} | |
return _.extend({}, parent_events, { | |
'click .msg .nick' : 'nickClick', | |
"click .chan": "chanClick", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
monitorPanelFallback: function() { | |
var panel_access = []; | |
this.model.on('active', function() {}) | |
this.model.on('remove', function() {}) | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IrcConnection.prototype.end = function (data) { | |
var that = this; | |
if (!this.socket) { | |
return; | |
} | |
this.requested_disconnect = true; | |
if (data && this.connected) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Irc = require('irc-framework'); | |
/** | |
* Example middleware structure to handle NickServ authentication | |
* Accepts a `services` object from the client connect() options | |
*/ | |
function ServiceX() { | |
return function(client, raw_events, parsed_events) { | |
raw_events.use(rawEventHandler); |
OlderNewer