Changeset e54112f for irc.h


Ignore:
Timestamp:
2010-05-02T23:44:33Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6a9d068
Parents:
bce78c8
Message:

Put a channel userlist in irc_channel_user elements so we can save flags
(i.e. modes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    rbce78c8 re54112f  
    153153};
    154154
     155typedef enum
     156{
     157        IRC_CHANNEL_USER_OP = 1,
     158        IRC_CHANNEL_USER_HALFOP = 2,
     159        IRC_CHANNEL_USER_VOICE = 4,
     160} irc_channel_user_flags_t;
     161
     162typedef struct irc_channel_user
     163{
     164        irc_user_t *iu;
     165        int flags;
     166} irc_channel_user_t;
     167
    155168extern const struct bee_ui_funcs irc_ui_funcs;
    156169
     
    181194int irc_channel_add_user( irc_channel_t *ic, irc_user_t *iu );
    182195int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu );
    183 gboolean irc_channel_has_user( irc_channel_t *ic, irc_user_t *iu );
     196irc_channel_user_t *irc_channel_has_user( irc_channel_t *ic, irc_user_t *iu );
    184197int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_t *who );
    185198gboolean irc_channel_name_ok( const char *name );
Note: See TracChangeset for help on using the changeset viewer.