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
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