Changeset b919363 for irc.h


Ignore:
Timestamp:
2010-03-27T14:31:03Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2f53ada
Parents:
9b69eb7
Message:

Mode stuff. Also disallow unsetting +R umode which was possible so far
(and shouldn't be).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    r9b69eb7 rb919363  
    3333#define IRC_PING_STRING "PinglBee"
    3434
    35 #define UMODES "abisw"
    36 #define UMODES_PRIV "Ro"
    37 #define CMODES "nt"
    38 #define CMODE "t"
    39 #define UMODE "s"
    40 #define CTYPES "&#"
     35#define UMODES "abisw"     /* Allowed umodes (although they mostly do nothing) */
     36#define UMODES_PRIV "Ro"   /* Allowed, but not by user directly */
     37#define UMODES_KEEP "R"    /* Don't allow unsetting using /MODE */
     38#define CMODES "nt"        /* Allowed modes */
     39#define CMODE "t"          /* Default mode */
     40#define UMODE "s"          /* Default mode */
     41
     42#define CTYPES "&#"        /* Valid channel name prefixes */
    4143
    4244typedef enum
     
    144146int irc_check_login( irc_t *irc );
    145147
     148void irc_umode_set( irc_t *irc, const char *s, gboolean allow_priv );
     149
    146150/* irc_channel.c */
    147151irc_channel_t *irc_channel_new( irc_t *irc, const char *name );
     
    151155int irc_channel_del_user( irc_channel_t *ic, irc_user_t *iu );
    152156int irc_channel_set_topic( irc_channel_t *ic, const char *topic, const irc_user_t *who );
     157gboolean irc_channel_name_ok( const char *name );
    153158
    154159/* irc_commands.c */
Note: See TracChangeset for help on using the changeset viewer.