Put the initialization in one string

Fixes #5, thanks to @torhve
with-route-provider
David Cormier 12 years ago
parent e90917803b
commit d468d1f0d6
  1. 5
      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? // FIXME: does password need to be sent only if protocol is not weechat?
if (proto == "weechat") { if (proto == "weechat") {
if (password) { 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 { } else {
} }

Loading…
Cancel
Save