[Pidgin] #6822: enhancement patch for getting XMPP chatroom list

Pidgin trac at pidgin.im
Wed Aug 27 12:01:03 EDT 2008


#6822: enhancement patch for getting XMPP chatroom list
-----------------------+----------------------------------------------------
 Reporter:  jts        |     Owner:  deryni
     Type:  patch      |    Status:  new   
Component:  XMPP       |   Version:  2.5.0 
 Keywords:  XMPP chat  |  
-----------------------+----------------------------------------------------
 Currently when users activate Tools -> Room List -> Get List, a form
 appears in which they can enter the name of the chat server component to
 which they wish to connect. This form appears even when there's only one
 chat server. For this case, this patch bypasses the form and goes straight
 to the room list.

 {{{
 --- libpurple/protocols/jabber/chat.c_orig 2008-08-18 21:53:39.000000000
 -0400
 +++ libpurple/protocols/jabber/chat.c  2008-08-19 10:21:39.352243000 -0400
 @@ -803,6 +803,7 @@
     purple_roomlist_set_fields(js->roomlist, fields);


 +   if(g_list_length(js->chat_servers) > 1) {
     purple_request_input(gc, _("Enter a Conference Server"), _("Enter a
 Conference Server"),
             _("Select a conference server to query"),
             js->chat_servers ? js->chat_servers->data : NULL,
 @@ -811,6 +812,9 @@
             _("Cancel"), PURPLE_CALLBACK(roomlist_cancel_cb),
             purple_connection_get_account(gc), NULL, NULL,
             js);
 +   } else {
 +       roomlist_ok_cb(js, js->chat_servers->data);
 +   }

     return js->roomlist;
  }
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/6822>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list