]> jfr.im git - irc/weechat/qweechat.git/blobdiff - src/qweechat/network.py
Replace calls to "apply(f, args)" with "f(*args)"
[irc/weechat/qweechat.git] / src / qweechat / network.py
index a06899687f705af459f17636f192de2d76707470..43d8c84b2db518e503c2c3d16faca400e51c6079 100644 (file)
@@ -29,9 +29,10 @@ QtCore = qt_compat.import_module('QtCore')
 QtNetwork = qt_compat.import_module('QtNetwork')
 
 _PROTO_INIT_CMDS = ['init password=%(password)s,compression=gzip',
-                    '(listbuffers) hdata buffer:gui_buffers(*) number,full_name,nicklist,title',
+                    '(listbuffers) hdata buffer:gui_buffers(*) number,full_name,short_name,nicklist,title,local_variables',
                     '(listlines) hdata buffer:gui_buffers(*)/own_lines/first_line(*)/data date,displayed,prefix,message',
                     '(nicklist) nicklist',
+                    'sync',
                     '']
 
 
@@ -42,7 +43,7 @@ class Network(QtCore.QObject):
     messageFromWeechat = qt_compat.Signal(QtCore.QByteArray)
 
     def __init__(self, *args):
-        apply(QtCore.QObject.__init__, (self,) + args)
+        QtCore.QObject.__init__(*(self,) + args)
         self.status_disconnected = 'disconnected'
         self.status_connecting = 'connecting...'
         self.status_connected = 'connected'