diff libervia.py @ 179:8475a29d7214

closing a group chat widget now leave the muc room (bug 11)
author Goffi <goffi@goffi.org>
date Sat, 26 Jan 2013 00:36:57 +0100
parents 6e39e0eaca35
children cf5c83e7d515
line wrap: on
line diff
--- a/libervia.py	Fri Jan 25 00:49:34 2013 +0100
+++ b/libervia.py	Sat Jan 26 00:36:57 2013 +0100
@@ -83,7 +83,7 @@
     def __init__(self):
         LiberviaJsonProxy.__init__(self, "/json_api",
                         ["getContacts", "addContact", "sendMessage", "sendMblog", "getLastMblogs", "getMassiveLastMblogs", "getProfileJid", "getHistory", "getPresenceStatus",
-                         "joinMUC", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
+                         "joinMUC", "mucLeave", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
                          "tarotGamePlayCards", "launchRadioCollective", "getWaitingSub", "subscription", "delContact", "updateContact", "getEntityData", "getParamsUI",
                          #"setParam",
                          "launchAction", "disconnect",
@@ -389,7 +389,7 @@
     def _roomJoinedCb(self, room_jid, room_nicks, user_nick):
         _target = JID(room_jid)
         self.room_list.add(_target)
-        chat_panel = panels.ChatPanel(self, _target, type='group')
+        chat_panel = panels.ChatPanel(self, _target, type_='group')
         chat_panel.setUserNick(user_nick)
         if _target.node.startswith('sat_tarot_'): #XXX: it's not really beautiful, but it works :)
             self.addTab(chat_panel, "Tarot")