Put the initialization in one string

Fixes #5, thanks to @torhve
This commit is contained in:
David Cormier 2013-10-05 09:57:45 -04:00
parent e90917803b
commit d468d1f0d6
1 changed files with 1 additions and 4 deletions

View File

@ -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 {
} }