diff options
author | Joe Robinson <joe@lc8n.com> | 2016-10-16 22:41:28 +0100 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2016-10-16 22:41:28 +0100 |
commit | 6463d5922886af839627c539feb9706b5fd9c529 (patch) | |
tree | 834c452ceb2019e0f86c7c9ff9582902dffb17c1 /index.js | |
parent | ac48b1195c4cd68f716e4119181c720cc9ec8b4f (diff) |
Remove irc.js dependency, bump version
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |