Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    reee3a5a r5ebff60  
    573573        ic->data = c;
    574574
    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 */
     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);
    588580
    589581        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.