src/irc_chan.h
changeset 74 11ec458d1cbf
parent 72 43084f103c2a
child 78 941bb8379d3d
equal deleted inserted replaced
73:2780a73c71f3 74:11ec458d1cbf
    32  */
    32  */
    33 struct irc_chan_callbacks {
    33 struct irc_chan_callbacks {
    34     /** Joined the channel */
    34     /** Joined the channel */
    35     void (*on_self_join) (struct irc_chan *chan, void *arg);
    35     void (*on_self_join) (struct irc_chan *chan, void *arg);
    36 
    36 
       
    37     /** We parted the channel */
       
    38     void (*on_self_part) (struct irc_chan *chan, void *arg);
       
    39 
    37     /** Someone joined the channel */
    40     /** Someone joined the channel */
    38     void (*on_join) (struct irc_chan *chan, const struct irc_nm *source, void *arg);
    41     void (*on_join) (struct irc_chan *chan, const struct irc_nm *source, void *arg);
       
    42 
       
    43     /** Someone parted the channel. The irc_chan_user is still present */
       
    44     void (*on_part) (struct irc_chan *chan, const struct irc_nm *source, const char *msg, void *arg);
    39 
    45 
    40     /** Someone sent a message to the channel */
    46     /** Someone sent a message to the channel */
    41     void (*on_msg) (struct irc_chan *chan, const struct irc_nm *source, const char *msg, void *arg);
    47     void (*on_msg) (struct irc_chan *chan, const struct irc_nm *source, const char *msg, void *arg);
    42 };
    48 };
    43 
    49 
    88     /** JOIN request sent, waiting for reply */
    94     /** JOIN request sent, waiting for reply */
    89     bool joining;
    95     bool joining;
    90 
    96 
    91     /** Currently joined to channel */
    97     /** Currently joined to channel */
    92     bool joined;
    98     bool joined;
       
    99 
       
   100     /** We PART'd the channel */
       
   101     bool parted;
    93 
   102 
    94     // @}
   103     // @}
    95     
   104     
    96     /** List of users on channel */
   105     /** List of users on channel */
    97     LIST_HEAD(irc_chan_users_list, irc_chan_user) users;
   106     LIST_HEAD(irc_chan_users_list, irc_chan_user) users;