Changeset 3fbce97 for irc.h


Ignore:
Timestamp:
2016-09-24T20:14:34Z (8 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
ba52ac5
Parents:
63cad66 (diff), 82cb190 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    r63cad66 r3fbce97  
    4949        USTATUS_SHUTDOWN = 8,   /* Now used to indicate we're shutting down.
    5050                                   Currently just blocks irc_vawrite(). */
     51        USTATUS_CAP_PENDING = 16,
     52        USTATUS_SASL_PLAIN_PENDING = 32,
    5153
    5254        /* Not really status stuff, but other kinds of flags: For slightly
     
    6567} irc_status_t;
    6668
     69typedef enum {
     70        CAP_SASL = (1 << 0),
     71        CAP_MULTI_PREFIX = (1 << 1),
     72        CAP_EXTENDED_JOIN = (1 << 2),
     73        CAP_AWAY_NOTIFY = (1 << 3),
     74        CAP_USERHOST_IN_NAMES = (1 << 4),
     75} irc_cap_flag_t;
     76
    6777struct irc_user;
    6878
     
    102112
    103113        struct bee *b;
     114        guint32 caps;
    104115} irc_t;
    105116
     
    302313gboolean irc_channel_name_hint(irc_channel_t *ic, const char *name);
    303314void irc_channel_update_ops(irc_channel_t *ic, char *value);
     315char irc_channel_user_get_prefix(irc_channel_user_t *icu);
    304316char *set_eval_irc_channel_ops(struct set *set, char *value);
    305317gboolean irc_channel_wants_user(irc_channel_t *ic, irc_user_t *iu);
     
    331343                                     irc_channel_user_flags_t old_flags, irc_channel_user_flags_t new_flags);
    332344void irc_send_invite(irc_user_t *iu, irc_channel_t *ic);
     345void irc_send_cap(irc_t *irc, char *subcommand, char *body);
     346void irc_send_away_notify(irc_user_t *iu);
    333347
    334348/* irc_user.c */
     
    344358char *set_eval_timezone(struct set *set, char *value);
    345359char *irc_format_timestamp(irc_t *irc, time_t msg_ts);
     360char *set_eval_self_messages(struct set *set, char *value);
    346361
    347362/* irc_im.c */
     
    349364void bee_irc_user_nick_reset(irc_user_t *iu);
    350365
     366/* irc_cap.c */
     367void irc_cmd_cap(irc_t *irc, char **cmd);
     368
    351369#endif
Note: See TracChangeset for help on using the changeset viewer.