Changeset 534e406 for protocols/twitter
- Timestamp:
- 2010-07-10T00:30:39Z (14 years ago)
- Branches:
- master
- Children:
- f1c2b21
- Parents:
- f3b6764
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
rf3b6764 r534e406 316 316 static void twitter_chat_msg( struct groupchat *c, char *message, int flags ) 317 317 { 318 if( c && message && twitter_length_check(c->ic, message)) 319 twitter_post_status(c->ic, message); 318 if( c && message && twitter_length_check( c->ic, message ) ) 319 { 320 char *s, *new = NULL; 321 322 if( ( s = strchr( message, ':' ) ) || 323 ( s = strchr( message, ',' ) ) ) 324 { 325 bee_user_t *bu; 326 327 new = g_strdup( message ); 328 new[s-message] = '\0'; 329 if( ( bu = bee_user_by_handle( c->ic->bee, c->ic, new ) ) ) 330 { 331 sprintf( new, "@%s", bu->handle ); 332 new[s-message+1] = ' '; 333 message = new; 334 } 335 } 336 337 twitter_post_status( c->ic, message ); 338 g_free( new ); 339 } 320 340 } 321 341
Note: See TracChangeset
for help on using the changeset viewer.