Changeset fa29d093 for protocols/msn/msn.c
- Timestamp:
- 2007-03-28T05:53:11Z (18 years ago)
- Branches:
- master
- Children:
- 0da65d5
- Parents:
- 723e611
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r723e611 rfa29d093 241 241 } 242 242 243 static int msn_chat_send( struct gaim_connection *gc, int id, char *message )244 { 245 struct msn_switchboard *sb = msn_sb_by_ id( gc, id);243 static int msn_chat_send( struct conversation *c, char *message ) 244 { 245 struct msn_switchboard *sb = msn_sb_by_chat( c ); 246 246 247 247 if( sb ) … … 251 251 } 252 252 253 static void msn_chat_invite( struct gaim_connection *gc, int id, char *msg, char *who )254 { 255 struct msn_switchboard *sb = msn_sb_by_ id( gc, id);253 static void msn_chat_invite( struct conversation *c, char *msg, char *who ) 254 { 255 struct msn_switchboard *sb = msn_sb_by_chat( c ); 256 256 char buf[1024]; 257 257 … … 263 263 } 264 264 265 static void msn_chat_leave( struct gaim_connection *gc, int id)266 { 267 struct msn_switchboard *sb = msn_sb_by_ id( gc, id);265 static void msn_chat_leave( struct conversation *c ) 266 { 267 struct msn_switchboard *sb = msn_sb_by_chat( c ); 268 268 269 269 if( sb ) … … 271 271 } 272 272 273 static intmsn_chat_open( struct gaim_connection *gc, char *who )273 static struct conversation *msn_chat_open( struct gaim_connection *gc, char *who ) 274 274 { 275 275 struct msn_switchboard *sb; … … 280 280 { 281 281 debug( "Converting existing switchboard to %s to a groupchat", who ); 282 msn_sb_to_chat( sb ); 283 return( 1 ); 282 return msn_sb_to_chat( sb ); 284 283 } 285 284 else … … 292 291 g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who ); 293 292 if( msn_sb_write( sb, buf, strlen( buf ) ) ) 294 { 295 msn_sb_to_chat( sb ); 296 return( 1 ); 297 } 293 return msn_sb_to_chat( sb ); 298 294 } 299 295 … … 314 310 md->msgq = g_slist_append( md->msgq, m ); 315 311 316 return( 1 ); 317 } 318 319 return( 0 ); 312 /* FIXME: Can I try to return something here already? */ 313 return NULL; 314 } 315 316 return NULL; 320 317 } 321 318
Note: See TracChangeset
for help on using the changeset viewer.