From 81d88d4c6403d046e786a5d7f207bf3aca884c17 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Sun, 18 May 2014 23:23:31 +0200 Subject: [PATCH] Minor fixes --- lib/server.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/server.js b/lib/server.js index 97aeec4..18b214d 100644 --- a/lib/server.js +++ b/lib/server.js @@ -225,9 +225,14 @@ function input(data) { break; case "join": + if (client && args[1]) { + client.join(args.slice(1)); + } + break; + case "nick": if (client && args[1]) { - client[cmd].apply(client, args.slice(1)); + client.nick(args[1]); } break; @@ -256,7 +261,7 @@ function input(data) { network.channels.forEach(function(c) { if (c.type == "channel") part.push(c.name); }); - client.part(part.join(",")); + client.part(part); break; case "invite":