- Timestamp:
- 2006-02-12T07:26:20Z (19 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.h
ra323a22 r5ebe625 33 33 #define IRC_PING_STRING "PinglBee" 34 34 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" 43 37 #define CMODES "nt" 44 38 #define CMODE "t" … … 47 41 typedef enum 48 42 { 49 USTATUS_OFFLINE ,43 USTATUS_OFFLINE = 0, 50 44 USTATUS_AUTHORIZED, 51 45 USTATUS_LOGGED_IN, 52 USTATUS_IDENTIFIED 46 USTATUS_IDENTIFIED, 47 USTATUS_SHUTDOWN = -1 53 48 } irc_status_t; 54 49 … … 110 105 111 106 irc_t *irc_new( int fd ); 107 void irc_abort( irc_t *irc, int immed, char *format, ... ); 112 108 void irc_free( irc_t *irc ); 113 109 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 ); 110 void irc_exec( irc_t *irc, char **cmd ); 111 void irc_process( irc_t *irc ); 112 char **irc_parse_line( char *line ); 113 char *irc_build_line( char **cmd ); 117 114 118 115 void irc_vawrite( irc_t *irc, char *format, va_list params ); … … 124 121 125 122 void irc_login( irc_t *irc ); 123 int irc_check_login( irc_t *irc ); 126 124 void irc_motd( irc_t *irc ); 127 125 void irc_names( irc_t *irc, char *channel ); 128 126 void irc_topic( irc_t *irc, char *channel ); 129 void irc_umode_set( irc_t *irc, char * who, char *s);127 void irc_umode_set( irc_t *irc, char *s, int allow_priv ); 130 128 void irc_who( irc_t *irc, char *channel ); 131 129 void irc_spawn( irc_t *irc, user_t *u ); … … 136 134 void irc_invite( irc_t *irc, char *nick, char *channel ); 137 135 void irc_whois( irc_t *irc, char *nick ); 138 int irc_away( irc_t *irc, char *away );139 136 void irc_setpass( irc_t *irc, const char *pass ); /* USE WITH CAUTION! */ 140 137 … … 144 141 int irc_noticefrom( irc_t *irc, char *nick, char *msg ); 145 142 146 intbuddy_send_handler( irc_t *irc, user_t *u, char *msg, int flags );143 void buddy_send_handler( irc_t *irc, user_t *u, char *msg, int flags ); 147 144 148 145 #endif
Note: See TracChangeset
for help on using the changeset viewer.