From d468d1f0d6b036e7293300221a5d8e83d38aab49 Mon Sep 17 00:00:00 2001 From: David Cormier Date: Sat, 5 Oct 2013 09:57:45 -0400 Subject: [PATCH] Put the initialization in one string Fixes #5, thanks to @torhve --- js/websockets.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/websockets.js b/js/websockets.js index 6287893..d2da706 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -324,11 +324,8 @@ weechat.factory('connection', ['$rootScope', '$log', 'handlers', 'colors', funct // FIXME: does password need to be sent only if protocol is not weechat? if (proto == "weechat") { if (password) { - doSend("init compression=off,password=" + password + "\n"); + doSend("init compression=off,password=" + password + "\n(bufinfo) hdata buffer:gui_buffers(*) full_name\nsync\n"); } - - doSend("(bufinfo) hdata buffer:gui_buffers(*) full_name\n"); - doSend("sync\n"); } else { }