Changeset 5ebe625 for irc.h


Ignore:
Timestamp:
2006-02-12T07:26:20Z (19 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
f665dab
Parents:
a323a22 (diff), 58bc4e6 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.h

    ra323a22 r5ebe625  
    3333#define IRC_PING_STRING "PinglBee"
    3434
    35 /* #define FLOOD_SEND
    36  * Not yet enabled by default due to some problems.
    37  */
    38 #define FLOOD_SEND_INTERVAL 30
    39 #define FLOOD_SEND_BYTES (1024*10)
    40 #define FLOOD_SEND_MAXBUFFER (1024*20)
    41 
    42 #define UMODES "ais"
     35#define UMODES "iasw"
     36#define UMODES_PRIV "Ro"
    4337#define CMODES "nt"
    4438#define CMODE "t"
     
    4741typedef enum
    4842{
    49         USTATUS_OFFLINE,
     43        USTATUS_OFFLINE = 0,
    5044        USTATUS_AUTHORIZED,
    5145        USTATUS_LOGGED_IN,
    52         USTATUS_IDENTIFIED
     46        USTATUS_IDENTIFIED,
     47        USTATUS_SHUTDOWN = -1
    5348} irc_status_t;
    5449
     
    110105
    111106irc_t *irc_new( int fd );
     107void irc_abort( irc_t *irc, int immed, char *format, ... );
    112108void irc_free( irc_t *irc );
    113109
    114 int irc_exec( irc_t *irc, char **cmd );
    115 int irc_process( irc_t *irc );
    116 int irc_process_line( irc_t *irc, char *line );
     110void irc_exec( irc_t *irc, char **cmd );
     111void irc_process( irc_t *irc );
     112char **irc_parse_line( char *line );
     113char *irc_build_line( char **cmd );
    117114
    118115void irc_vawrite( irc_t *irc, char *format, va_list params );
     
    124121
    125122void irc_login( irc_t *irc );
     123int irc_check_login( irc_t *irc );
    126124void irc_motd( irc_t *irc );
    127125void irc_names( irc_t *irc, char *channel );
    128126void irc_topic( irc_t *irc, char *channel );
    129 void irc_umode_set( irc_t *irc, char *who, char *s );
     127void irc_umode_set( irc_t *irc, char *s, int allow_priv );
    130128void irc_who( irc_t *irc, char *channel );
    131129void irc_spawn( irc_t *irc, user_t *u );
     
    136134void irc_invite( irc_t *irc, char *nick, char *channel );
    137135void irc_whois( irc_t *irc, char *nick );
    138 int irc_away( irc_t *irc, char *away );
    139136void irc_setpass( irc_t *irc, const char *pass ); /* USE WITH CAUTION! */
    140137
     
    144141int irc_noticefrom( irc_t *irc, char *nick, char *msg );
    145142
    146 int buddy_send_handler( irc_t *irc, user_t *u, char *msg, int flags );
     143void buddy_send_handler( irc_t *irc, user_t *u, char *msg, int flags );
    147144
    148145#endif
Note: See TracChangeset for help on using the changeset viewer.