Changeset 399d65a for protocols/jabber/jabber.c
- Timestamp:
- 2016-10-17T02:46:33Z (8 years ago)
- Branches:
- master
- Children:
- 4466e3e
- Parents:
- 2906268
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
r2906268 r399d65a 321 321 struct jabber_data *jd = ic->proto_data; 322 322 323 imcb_chat_list_free(ic); 324 323 325 while (jd->filetransfers) { 324 326 imcb_file_canceled(ic, (( struct jabber_transfer *) jd->filetransfers->data)->ft, "Logging out"); … … 593 595 } 594 596 597 static void jabber_chat_list_(struct im_connection *ic, const char *server) 598 { 599 struct jabber_data *jd = ic->proto_data; 600 601 if (server && *server) { 602 jabber_iq_disco_muc(ic, server); 603 } else if (jd->muc_host && *jd->muc_host) { 604 jabber_iq_disco_muc(ic, jd->muc_host); 605 } else { 606 /* throw an error here, don't query conference.[server] directly. 607 * for things like jabber.org it gets you 18000 results of garbage */ 608 imcb_error(ic, "Please specify a server name such as `conference.%s'", jd->server); 609 } 610 } 611 595 612 static void jabber_chat_msg_(struct groupchat *c, char *message, int flags) 596 613 { … … 768 785 ret->chat_join = jabber_chat_join_; 769 786 ret->chat_with = jabber_chat_with_; 787 ret->chat_list = jabber_chat_list_; 770 788 ret->chat_add_settings = jabber_chat_add_settings; 771 789 ret->chat_free_settings = jabber_chat_free_settings;
Note: See TracChangeset
for help on using the changeset viewer.