#include "server.h"
Go to the source code of this file.
Functions | |
void | server_binds_destroy () |
void | server_binds_init () |
Variables | |
static const char | rcsid [] = "$Id: binds.c,v 1.17 2005-03-03 18:45:26 stdarg Exp $" |
bind_table_t * | BT_wall = NULL |
bind_table_t * | BT_raw = NULL |
bind_table_t * | BT_server_input = NULL |
bind_table_t * | BT_server_output = NULL |
bind_table_t * | BT_notice = NULL |
bind_table_t * | BT_msg = NULL |
bind_table_t * | BT_msgm = NULL |
bind_table_t * | BT_pub = NULL |
bind_table_t * | BT_pubm = NULL |
bind_table_t * | BT_ctcp = NULL |
bind_table_t * | BT_ctcr = NULL |
bind_table_t * | BT_dcc_chat = NULL |
bind_table_t * | BT_dcc_recv = NULL |
bind_table_t * | BT_nick = NULL |
bind_table_t * | BT_join = NULL |
bind_table_t * | BT_part = NULL |
bind_table_t * | BT_quit = NULL |
bind_table_t * | BT_kick = NULL |
bind_table_t * | BT_leave = NULL |
bind_table_t * | BT_mode = NULL |
bind_table_t * | BT_chanset = NULL |
void server_binds_destroy | ( | ) |
Definition at line 137 of file binds.c.
References bind_table_del().
00138 { 00139 bind_table_del(BT_wall); 00140 bind_table_del(BT_raw); 00141 bind_table_del(BT_server_input); 00142 bind_table_del(BT_server_output); 00143 bind_table_del(BT_notice); 00144 bind_table_del(BT_msgm); 00145 bind_table_del(BT_msg); 00146 bind_table_del(BT_pubm); 00147 bind_table_del(BT_pub); 00148 bind_table_del(BT_ctcr); 00149 bind_table_del(BT_ctcp); 00150 bind_table_del(BT_dcc_chat); 00151 bind_table_del(BT_dcc_recv); 00152 bind_table_del(BT_nick); 00153 bind_table_del(BT_join); 00154 bind_table_del(BT_part); 00155 bind_table_del(BT_quit); 00156 bind_table_del(BT_kick); 00157 bind_table_del(BT_leave); 00158 bind_table_del(BT_mode); 00159 bind_table_del(BT_chanset); 00160 }
void server_binds_init | ( | ) |
Definition at line 162 of file binds.c.
References bind_add_list(), BIND_BREAKABLE, BIND_STACKABLE, bind_table_add(), ctcp_dcc_binds, MATCH_EXACT, MATCH_FLAGS, MATCH_FLAGS_OR, MATCH_MASK, and MATCH_NONE.
00163 { 00164 /* Create our bind tables. */ 00165 BT_wall = bind_table_add("wall", 2, "ss", MATCH_MASK, BIND_STACKABLE); 00166 BT_raw = bind_table_add("raw", 6, "ssUsiS", MATCH_MASK, BIND_STACKABLE); 00167 BT_server_input = bind_table_add("server_input", 1, "s", MATCH_NONE, BIND_STACKABLE | BIND_BREAKABLE); 00168 BT_server_output = bind_table_add("server_output", 1, "s", MATCH_NONE, BIND_STACKABLE | BIND_BREAKABLE); 00169 BT_notice = bind_table_add("notice", 5, "ssUss", MATCH_MASK | MATCH_FLAGS_OR, BIND_STACKABLE); 00170 BT_msg = bind_table_add("msg", 4, "ssUs", MATCH_EXACT, 0); /* DDD */ 00171 BT_msgm = bind_table_add("msgm", 4, "ssUs", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00172 BT_pub = bind_table_add("pub", 5, "ssUss", MATCH_EXACT, 0); /* DDD */ 00173 BT_pubm = bind_table_add("pubm", 5, "ssUss", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00174 BT_ctcr = bind_table_add("ctcr", 6, "ssUsss", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00175 BT_ctcp = bind_table_add("ctcp", 6, "ssUsss", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00176 BT_dcc_chat = bind_table_add("dcc_chat", 6, "ssUssi", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00177 BT_dcc_recv = bind_table_add("dcc_recv", 7, "ssUssii", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00178 BT_nick = bind_table_add("nick", 4, "ssUs", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00179 BT_join = bind_table_add("join", 4, "ssUs", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00180 BT_part = bind_table_add("part", 5, "ssUss", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00181 BT_quit = bind_table_add("quit", 4, "ssUs", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00182 BT_kick = bind_table_add("kick", 5, "ssUss", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00183 BT_leave = bind_table_add("leave", 4, "ssUs", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00184 BT_mode = bind_table_add("mode", 6, "ssUsss", MATCH_MASK | MATCH_FLAGS, BIND_STACKABLE); /* DDD */ 00185 00186 BT_chanset = bind_table_add("chanset", 4, "ssss", MATCH_MASK, BIND_STACKABLE); 00187 00188 bind_add_list("ctcp", ctcp_dcc_binds); 00189 }
bind_table_t* BT_chanset = NULL |
bind_table_t* BT_ctcp = NULL |
bind_table_t* BT_ctcr = NULL |
bind_table_t* BT_dcc_chat = NULL |
bind_table_t* BT_dcc_recv = NULL |
bind_table_t* BT_join = NULL |
bind_table_t* BT_kick = NULL |
bind_table_t* BT_leave = NULL |
bind_table_t* BT_mode = NULL |
bind_table_t* BT_msg = NULL |
foo |
string | The nick of the source. | |
string | Ident@Host of the source. | |
user | The user account of the source. | |
string | The rest of the line. |
bind_table_t* BT_msgm = NULL |
bind_table_t* BT_nick = NULL |
bind_table_t* BT_notice = NULL |
bind_table_t* BT_part = NULL |
bind_table_t* BT_pub = NULL |
bind_table_t* BT_pubm = NULL |
bind_table_t* BT_quit = NULL |
bind_table_t* BT_raw = NULL |
string | The nick of the source. | |
string | Ident@Host of the source. | |
user | The user account of the source. | |
string | The command. | |
integer | The number of parameters. | |
Array | All further parameters. |
bind_table_t* BT_server_input = NULL |
string | The line sent by the server. |
bind_table_t* BT_server_output = NULL |
string | The line to be sent to the server. |
bind_table_t* BT_wall = NULL |
const char rcsid[] = "$Id: binds.c,v 1.17 2005-03-03 18:45:26 stdarg Exp $" [static] |