Fixed Account protocol parameter typo.
[python-purple] / purple.pyx
index 8e4dde0..55e72c9 100644 (file)
@@ -331,7 +331,8 @@ cdef class Purple:
                 protocol_id = <char *> account.purple_account_get_protocol_id(acc)
 
                 if username != NULL and protocol_id != NULL:
-                    account_list.append(Account(self, username, protocol_id))
+                    account_list.append(Account(username, \
+                            Protocol(protocol_id), self))
             iter = iter.next
 
         return account_list
@@ -345,7 +346,7 @@ cdef class Purple:
         while iter:
             pp = <plugin.PurplePlugin*> iter.data
             if pp.info and pp.info.name:
-                protocol_list.append[Protocol(pp.info.id)]
+                protocol_list.append(Protocol(pp.info.id))
             iter = iter.next
         return protocol_list