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
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
// 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
<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
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; |
NewerOlder