diff options
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 |