Changes in irc_im.c [5ebff60:eee3a5a]
Legend:
- Unmodified
- Added
- Removed
-
irc_im.c
r5ebff60 reee3a5a 573 573 ic->data = c; 574 574 575 topic = g_strdup_printf( 576 "BitlBee groupchat: \"%s\". Please keep in mind that root-commands won't work here. Have fun!", 577 c->title); 578 irc_channel_set_topic(ic, topic, irc->root); 579 g_free(topic); 575 if (ic->topic == NULL) { 576 /* New channel with no preset topic - make up a generic one */ 577 topic = g_strdup_printf( 578 "BitlBee groupchat: \"%s\". Please keep in mind that root-commands won't work here. Have fun!", 579 c->title); 580 irc_channel_set_topic(ic, topic, irc->root); 581 } else { 582 /* Preset topic from the channel we picked */ 583 topic = g_strdup(ic->topic); 584 } 585 586 g_free(c->topic); 587 c->topic = topic; /* Let groupchat borrow this pointer */ 580 588 581 589 return TRUE;
Note: See TracChangeset
for help on using the changeset viewer.