Changeset eaaa986
- Timestamp:
- 2010-05-08T14:48:38Z (15 years ago)
- Branches:
- master
- Children:
- e685657
- Parents:
- 4a9fd5f
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r4a9fd5f reaaa986 242 242 g_free( irc->readbuffer ); 243 243 g_free( irc->password ); 244 g_free( irc->last_root_cmd ); 244 245 245 246 g_free( irc ); -
irc_commands.c
r4a9fd5f reaaa986 536 536 static void irc_cmd_away( irc_t *irc, char **cmd ) 537 537 { 538 char *set;539 540 538 if( cmd[1] && *cmd[1] ) 541 539 { -
protocols/bee.h
r4a9fd5f reaaa986 129 129 #endif 130 130 int bee_chat_msg( bee_t *bee, struct groupchat *c, const char *msg, int flags ); 131 struct groupchat *bee_chat_by_title( bee_t *bee, struct im_connection *ic, const char *title ); 131 132 132 133 #endif /* __BEE_H__ */ -
protocols/bee_chat.c
r4a9fd5f reaaa986 218 218 return 1; 219 219 } 220 221 struct groupchat *bee_chat_by_title( bee_t *bee, struct im_connection *ic, const char *title ) 222 { 223 struct groupchat *c; 224 GSList *l; 225 226 for( l = ic->groupchats; l; l = l->next ) 227 { 228 c = l->data; 229 if( strcmp( c->title, title ) == 0 ) 230 return c; 231 } 232 233 return NULL; 234 } -
protocols/jabber/presence.c
r4a9fd5f reaaa986 205 205 struct jabber_data *jd = ic->proto_data; 206 206 struct xt_node *node, *cap; 207 struct groupchat *c;208 207 GSList *l; 209 208 int st; -
protocols/yahoo/yahoo.c
r4a9fd5f reaaa986 153 153 154 154 while( ic->groupchats ) 155 imcb_chat_free( ic->groupchats );155 imcb_chat_free( ic->groupchats->data ); 156 156 157 157 for( l = yd->buddygroups; l; l = l->next ) … … 791 791 struct byahoo_conf_invitation *inv = data; 792 792 struct groupchat *b; 793 794 for( b = inv->ic->groupchats; b; b = b->next ) 793 GSList *l; 794 795 for( l = inv->ic->groupchats; l; l = l->next ) 796 { 797 b = l->data; 795 798 if( b == inv->c ) 796 799 break; 800 } 797 801 798 802 if( b != NULL ) … … 856 860 { 857 861 struct im_connection *ic = byahoo_get_ic_by_id( id ); 858 struct groupchat *c; 859 860 for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next ); 862 struct groupchat *c = bee_chat_by_title( ic->bee, ic, room ); 861 863 862 864 if( c ) … … 868 870 { 869 871 struct im_connection *ic = byahoo_get_ic_by_id( id ); 870 struct groupchat *c; 871 872 for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next ); 872 struct groupchat *c = bee_chat_by_title( ic->bee, ic, room ); 873 873 874 874 if( c ) … … 880 880 struct im_connection *ic = byahoo_get_ic_by_id( id ); 881 881 char *m = byahoo_strip( msg ); 882 struct groupchat *c; 883 884 for( c = ic->groupchats; c && strcmp( c->title, room ) != 0; c = c->next ); 882 struct groupchat *c = bee_chat_by_title( ic->bee, ic, room ); 885 883 886 884 if( c )
Note: See TracChangeset
for help on using the changeset viewer.