Changeset 4469e7e for irc_im.c


Ignore:
Timestamp:
2010-06-03T22:17:11Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2b8473c
Parents:
7b71feb
Message:

Support for the /topic command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r7b71feb r4469e7e  
    477477static gboolean bee_irc_channel_chat_topic( irc_channel_t *ic, const char *new )
    478478{
    479         return TRUE;
     479        struct groupchat *c = ic->data;
     480        char *topic = g_strdup( new ); /* TODO: Need more const goodness here, sigh */
     481       
     482        if( c->ic->acc->prpl->chat_topic == NULL )
     483                irc_send_num( ic->irc, 482, "%s :IM network does not support channel topics", ic->name );
     484        else
     485        {
     486                c->ic->acc->prpl->chat_topic( c, topic );
     487                return TRUE;
     488        }
     489               
     490        return FALSE;
    480491}
    481492
Note: See TracChangeset for help on using the changeset viewer.