Changes in protocols/jabber/jabber.c [eded1f7:2ff2076]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
reded1f7 r2ff2076 226 226 jd->cached_id_prefix = g_strdup_printf( "%s%s", JABBER_CACHED_ID, s ); 227 227 g_free( s ); 228 229 printf( "%s\n", jd->cached_id_prefix ); 228 230 } 229 231 … … 270 272 return jabber_write( ic, message, strlen( message ) ); 271 273 272 if( ( s = strchr( who, '=' ) ) && jabber_chat_by_ jid( ic, s + 1 ) )274 if( ( s = strchr( who, '=' ) ) && jabber_chat_by_name( ic, s + 1 ) ) 273 275 bud = jabber_buddy_by_ext_jid( ic, who, 0 ); 274 276 else … … 397 399 if( strchr( room, '@' ) == NULL ) 398 400 imcb_error( ic, "Invalid room name: %s", room ); 399 else if( jabber_chat_by_ jid( ic, room ) )401 else if( jabber_chat_by_name( ic, room ) ) 400 402 imcb_error( ic, "Already present in chat `%s'", room ); 401 403 else … … 421 423 if( c ) 422 424 jabber_chat_leave( c, NULL ); 423 }424 425 static void jabber_chat_invite_( struct groupchat *c, char *who, char *msg )426 {427 struct jabber_chat *jc = c->data;428 gchar *msg_alt = NULL;429 430 if( msg == NULL )431 msg_alt = g_strdup_printf( "%s invited you to %s", c->ic->acc->user, jc->name );432 433 if( c && who )434 jabber_chat_invite( c, who, msg ? msg : msg_alt );435 436 g_free( msg_alt );437 425 } 438 426 … … 508 496 ret->chat_msg = jabber_chat_msg_; 509 497 ret->chat_topic = jabber_chat_topic_; 510 ret->chat_invite = jabber_chat_invite_;498 // ret->chat_invite = jabber_chat_invite; 511 499 ret->chat_leave = jabber_chat_leave_; 512 500 ret->chat_join = jabber_chat_join_;
Note: See TracChangeset
for help on using the changeset viewer.