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

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