changeset 77435d3a9d12 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=77435d3a9d12
description: request room config when we convert a chat to groupchat so that we 
can configure it. Fixes #7014

diffstat:

 src/groupchat_control.py |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r bb36d5003554 -r 77435d3a9d12 src/groupchat_control.py
--- a/src/groupchat_control.py  Thu Oct 13 22:23:40 2011 +0200
+++ b/src/groupchat_control.py  Sat Oct 15 10:47:22 2011 +0200
@@ -1495,6 +1495,14 @@
         # http://www.xmpp.org/extensions/xep-0045.html#registrar-statuscodes-\
         # init
         if obj.status_code:
+            if '110' in obj.status_code:
+                # We just join the room
+                if self.room_jid in gajim.automatic_rooms[self.account] and \
+                gajim.automatic_rooms[self.account][self.room_jid]['invities']:
+                    if self.room_jid not in gajim.interface.instances[
+                    self.account]['gc_config']:
+                        gajim.connections[self.account].request_gc_config(
+                            self.room_jid)
             if '100' in obj.status_code:
                 # Can be a message (see handle_event_gc_config_change in
                 # gajim.py)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to