From 6463d5922886af839627c539feb9706b5fd9c529 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Sun, 16 Oct 2016 22:41:28 +0100 Subject: Remove irc.js dependency, bump version --- index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 1975bc0..e65d207 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,6 @@ $(document).on('click', 'a[href^="http"]', function(event) { shell.openExternal(this.href); }); -const irc = require('irc'); const IRC = require('irc-framework'); const client = new IRC.Client() @@ -40,16 +39,13 @@ txtChannels = txtChannels.substring(0, txtChannels.length-1) $("#channel-input").val(txtChannels); $('#connect').on('click', function() { -console.log($("#channel-input").val()); server = $("#server-input").val(); port = $("#port-input").val(); channels = $("#channel-input").val().split(" "); myNick = $("#nick-input").val(); password = $("#password-input").val(); ssl = ($("#ssl-input:checked").val() == "on"); - console.log(ssl); client.use(debugmiddleware.DebugMiddleware()); - console.log(server) client.connect({ host: server, port: port, @@ -59,7 +55,7 @@ console.log($("#channel-input").val()); password: password, tls: ssl, rejectUnauthorized: false, - version: "blachat 0.1.3" + version: pjson.name + " " + pjson.version }); globals.myNick = myNick -- cgit v1.2.3