diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 08:30:00 -0400 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-27 08:30:00 -0400 |
commit | 83e92bf7487623c10567502936ca727f3a4c104c (patch) | |
tree | 35e853f3a2e26582c0dc4938599a85518a41b5b0 /irc.h | |
parent | b95932eb5a897fd264f3762493285dd7037dccba (diff) |
Topic handling changes.
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -117,6 +117,8 @@ typedef struct irc_channel int flags; char *name; char *topic; + char *topic_who; + time_t topic_time; char mode[8]; GSList *users; struct set *set; @@ -144,9 +146,10 @@ int irc_check_login( irc_t *irc ); /* irc_channel.c */ irc_channel_t *irc_channel_new( irc_t *irc, const char *name ); irc_channel_t *irc_channel_by_name( irc_t *irc, const char *name ); +int irc_channel_free( irc_channel_t *ic ); int irc_channel_add_user( irc_channel_t *ic, irc_user_t *iu ); int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu ); -int irc_channel_set_topic( irc_channel_t *ic, const char *topic ); +int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_t *who ); /* irc_commands.c */ void irc_exec( irc_t *irc, char **cmd ); @@ -159,7 +162,7 @@ void irc_usermsg( irc_t *irc, char *format, ... ); void irc_send_join( irc_channel_t *ic, irc_user_t *iu ); void irc_send_part( irc_channel_t *ic, irc_user_t *iu, const char *reason ); void irc_send_names( irc_channel_t *ic ); -void irc_send_topic( irc_channel_t *ic ); +void irc_send_topic( irc_channel_t *ic, gboolean topic_change ); void irc_send_whois( irc_user_t *iu ); /* irc_user.c */ |