Changeset 83e92bf for irc_channel.c
- Timestamp:
- 2010-03-27T12:30:00Z (14 years ago)
- Branches:
- master
- Children:
- 9b69eb7
- Parents:
- b95932e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
rb95932e r83e92bf 109 109 } 110 110 111 int irc_channel_set_topic( irc_channel_t *ic, const char *topic )111 int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_t *iu ) 112 112 { 113 113 g_free( ic->topic ); 114 114 ic->topic = g_strdup( topic ); 115 115 116 g_free( ic->topic_who ); 117 if( iu ) 118 ic->topic_who = g_strdup_printf( "%s!%s@%s", iu->nick, iu->user, iu->host ); 119 else 120 ic->topic_who = NULL; 121 122 ic->topic_time = time( NULL ); 123 116 124 if( ic->flags & IRC_CHANNEL_JOINED ) 117 irc_send_topic( ic );125 irc_send_topic( ic, TRUE ); 118 126 119 127 return 1;
Note: See TracChangeset
for help on using the changeset viewer.