void IRCDModeInit(void) { ModuleSetUserMode(UMODE_B, IRCD_ENABLE); ModuleSetUserMode(UMODE_G, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_S, IRCD_ENABLE); ModuleSetUserMode(UMODE_W, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); /* Channel Modes */ CreateChanMode(CMODE_C, NULL, NULL); CreateChanMode(CMODE_G, NULL, NULL); CreateChanMode(CMODE_J, NULL, NULL); CreateChanMode(CMODE_K, NULL, NULL); CreateChanMode(CMODE_L, set_redirect, get_redirect); CreateChanMode(CMODE_M, NULL, NULL); CreateChanMode(CMODE_N, NULL, NULL); CreateChanMode(CMODE_O, NULL, NULL); CreateChanMode(CMODE_P, NULL, NULL); CreateChanMode(CMODE_Q, NULL, NULL); CreateChanMode(CMODE_R, NULL, NULL); CreateChanMode(CMODE_S, NULL, NULL); CreateChanMode(CMODE_T, NULL, NULL); CreateChanMode(CMODE_V, NULL, NULL); CreateChanMode(CMODE_c, NULL, NULL); CreateChanMode(CMODE_g, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_j, set_flood_alt, get_flood_alt); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); CreateChanMode(CMODE_z, NULL, NULL); ModuleSetChanUMode('%', 'h', STATUS_HALFOP); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleSetChanUMode('~', 'a', STATUS_PROTECTED); ModuleSetChanUMode('*', 'q', STATUS_OWNER); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { ModuleSetUserMode(UMODE_A, IRCD_ENABLE); ModuleSetUserMode(UMODE_D, IRCD_ENABLE); ModuleSetUserMode(UMODE_F, IRCD_ENABLE); ModuleSetUserMode(UMODE_I, IRCD_ENABLE); ModuleSetUserMode(UMODE_K, IRCD_ENABLE); ModuleSetUserMode(UMODE_O, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_X, IRCD_ENABLE); ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_b, IRCD_ENABLE); ModuleSetUserMode(UMODE_c, IRCD_ENABLE); ModuleSetUserMode(UMODE_d, IRCD_ENABLE); ModuleSetUserMode(UMODE_e, IRCD_ENABLE); ModuleSetUserMode(UMODE_f, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_j, IRCD_ENABLE); ModuleSetUserMode(UMODE_k, IRCD_ENABLE); ModuleSetUserMode(UMODE_m, IRCD_ENABLE); ModuleSetUserMode(UMODE_n, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleSetUserMode(UMODE_y, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); CreateChanBanMode(CMODE_I, add_invite, del_invite); /* Channel Modes */ CreateChanMode(CMODE_L, NULL, NULL); CreateChanMode(CMODE_M, NULL, NULL); CreateChanMode(CMODE_O, NULL, NULL); CreateChanMode(CMODE_R, NULL, NULL); CreateChanMode(CMODE_c, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_j, set_flood_alt, get_flood_alt); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { ModuleSetUserMode(UMODE_A, IRCD_ENABLE); ModuleSetUserMode(UMODE_B, IRCD_ENABLE); ModuleSetUserMode(UMODE_H, IRCD_ENABLE); ModuleSetUserMode(UMODE_N, IRCD_ENABLE); ModuleSetUserMode(UMODE_O, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_S, IRCD_ENABLE); ModuleSetUserMode(UMODE_T, IRCD_ENABLE); ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_p, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_v, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_y, IRCD_ENABLE); ModuleSetUserMode(UMODE_z, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); /* Channel Modes */ CreateChanMode(CMODE_A, NULL, NULL); CreateChanMode(CMODE_C, NULL, NULL); CreateChanMode(CMODE_N, NULL, NULL); CreateChanMode(CMODE_R, NULL, NULL); CreateChanMode(CMODE_S, NULL, NULL); CreateChanMode(CMODE_c, NULL, NULL); CreateChanMode(CMODE_f, set_flood, get_flood); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); ModuleSetChanUMode('%', 'h', STATUS_HALFOP); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleSetChanUMode('.', 'a', STATUS_PROTECTED); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { /* User Modes */ ModuleSetUserMode(UMODE_d, IRCD_ENABLE); /* Deaf Mode */ ModuleSetUserMode(UMODE_g, IRCD_ENABLE); /* Server debug messages */ ModuleSetUserMode(UMODE_h, IRCD_ENABLE); /* */ ModuleSetUserMode(UMODE_i, IRCD_ENABLE); /* Invisible */ ModuleSetUserMode(UMODE_k, IRCD_ENABLE); /* Service */ ModuleSetUserMode(UMODE_o, IRCD_ENABLE); /* Local Operator */ ModuleSetUserMode(UMODE_r, IRCD_ENABLE); /* Registered */ ModuleSetUserMode(UMODE_s, IRCD_ENABLE); /* Server Notices */ ModuleSetUserMode(UMODE_w, IRCD_ENABLE); /* Wallops */ ModuleSetUserMode(UMODE_x, IRCD_ENABLE); /* Hidden Host */ ModuleSetUserMode(UMODE_B, IRCD_ENABLE); /* Authorized Bot */ ModuleSetUserMode(UMODE_H, IRCD_ENABLE); /* Oper Help */ ModuleSetUserMode(UMODE_O, IRCD_ENABLE); /* Global Operator */ ModuleSetUserMode(UMODE_R, IRCD_ENABLE); /* Registered Only */ ModuleSetUserMode(UMODE_T, IRCD_ENABLE); /* TOR User */ ModuleSetUserMode(UMODE_W, IRCD_ENABLE); /* CGI User */ ModuleUpdateSQLUserMode(); /* Channel List Modes */ CreateChanBanMode(CMODE_b, add_ban, del_ban); /* Ban */ CreateChanBanMode(CMODE_I, add_invite, del_invite); /* Permanent Invites */ /* Channel Modes */ CreateChanMode(CMODE_C, NULL, NULL); /* No CTCP */ CreateChanMode(CMODE_D, NULL, NULL); /* Delayed Join */ CreateChanMode(CMODE_O, NULL, NULL); /* Oper Only */ CreateChanMode(CMODE_T, NULL, NULL); /* No TOR users */ CreateChanMode(CMODE_N, NULL, NULL); /* No Notices */ CreateChanMode(CMODE_c, NULL, NULL); /* No Colours */ CreateChanMode(CMODE_i, NULL, NULL); /* Invite Only */ CreateChanMode(CMODE_k, set_key, get_key); /* Keyed */ CreateChanMode(CMODE_l, set_limit, get_limit); /* Invite Only */ CreateChanMode(CMODE_m, NULL, NULL); /* Moderated */ CreateChanMode(CMODE_n, NULL, NULL); /* No external messages */ CreateChanMode(CMODE_p, NULL, NULL); /* Private */ CreateChanMode(CMODE_r, NULL, NULL); /* Registered Only */ CreateChanMode(CMODE_s, NULL, NULL); /* Secret */ CreateChanMode(CMODE_t, NULL, NULL); /* Topic only changeable by ops */ CreateChanMode(CMODE_u, NULL, NULL); /* No Quitmessages */ /* Channel User Modes */ ModuleSetChanUMode('%', 'h', STATUS_HALFOP); /* Halfop */ ModuleSetChanUMode('*', 'q', STATUS_OWNER); /* Owner */ ModuleSetChanUMode('+', 'v', STATUS_VOICE); /* Voice */ ModuleSetChanUMode('@', 'o', STATUS_OP); /* Operator */ ModuleSetChanUMode('~', 'a', STATUS_PROTECTED); /* Admin */ ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { ModuleSetUserMode(UMODE_S, IRCD_ENABLE); ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_b, IRCD_ENABLE); ModuleSetUserMode(UMODE_c, IRCD_ENABLE); ModuleSetUserMode(UMODE_d, IRCD_ENABLE); ModuleSetUserMode(UMODE_f, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_k, IRCD_ENABLE); ModuleSetUserMode(UMODE_l, IRCD_ENABLE); ModuleSetUserMode(UMODE_n, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_u, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleSetUserMode(UMODE_y, IRCD_ENABLE); ModuleSetUserMode(UMODE_z, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); /* Channel Modes */ CreateChanMode(CMODE_A, NULL, NULL); CreateChanMode(CMODE_I, NULL, NULL); CreateChanMode(CMODE_O, NULL, NULL); CreateChanMode(CMODE_a, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); ModuleSetChanUMode('%', 'h', STATUS_HALFOP); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleSetChanUMode('!', 'a', STATUS_PROTECTED); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { ModuleSetUserMode(UMODE_A, IRCD_ENABLE); ModuleSetUserMode(UMODE_G, IRCD_ENABLE); ModuleSetUserMode(UMODE_O, IRCD_ENABLE); ModuleSetUserMode(UMODE_P, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_W, IRCD_ENABLE); ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_m, IRCD_ENABLE); ModuleSetUserMode(UMODE_n, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_p, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); /* Channel Modes */ CreateChanMode(CMODE_A, NULL, NULL); CreateChanMode(CMODE_I, NULL, NULL); CreateChanMode(CMODE_K, NULL, NULL); CreateChanMode(CMODE_L, set_redirect, get_redirect); CreateChanMode(CMODE_O, NULL, NULL); CreateChanMode(CMODE_R, NULL, NULL); CreateChanMode(CMODE_S, NULL, NULL); CreateChanMode(CMODE_f, set_flood, get_flood); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); CreateChanMode(CMODE_x, NULL, NULL); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { ModuleSetUserMode(UMODE_A, IRCD_ENABLE); ModuleSetUserMode(UMODE_O, IRCD_ENABLE); ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_c, IRCD_ENABLE); ModuleSetUserMode(UMODE_f, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_k, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); /* Channel Modes */ CreateChanMode(CMODE_R, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { /* User Modes * o - oper * O - local op * i - invisible * w - receive wallops * s - servnotice * d - deaf * k - chserv * g - debug * r - account * x - hiddenhost * X - xtraop * n - no chan * I - noidle * R - accountonly * h - sethost */ ModuleSetUserMode(UMODE_I, IRCD_ENABLE); ModuleSetUserMode(UMODE_O, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_X, IRCD_ENABLE); ModuleSetUserMode(UMODE_d, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_k, IRCD_ENABLE); ModuleSetUserMode(UMODE_n, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleUpdateSQLUserMode(); /* Channel Modes * p - private * s - secret * m - moderated * t - topic limit * i - invite only * n - no privmsgs * r - reg only * D - deljoins * d - wasdeljoin * c - no colour * C - no ctcp * N - no notice * u - no quit parts */ CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanMode(CMODE_C, NULL, NULL); CreateChanMode(CMODE_D, NULL, NULL); CreateChanMode(CMODE_N, NULL, NULL); CreateChanMode(CMODE_c, NULL, NULL); CreateChanMode(CMODE_d, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); CreateChanMode(CMODE_u, NULL, NULL); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { ModuleSetUserMode(UMODE_C, IRCD_ENABLE); ModuleSetUserMode(UMODE_D, IRCD_ENABLE); ModuleSetUserMode(UMODE_G, IRCD_ENABLE); ModuleSetUserMode(UMODE_N, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_S, IRCD_ENABLE); ModuleSetUserMode(UMODE_W, IRCD_ENABLE); ModuleSetUserMode(UMODE_X, IRCD_ENABLE); ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_b, IRCD_ENABLE); ModuleSetUserMode(UMODE_c, IRCD_ENABLE); ModuleSetUserMode(UMODE_d, IRCD_ENABLE); ModuleSetUserMode(UMODE_f, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_k, IRCD_ENABLE); ModuleSetUserMode(UMODE_l, IRCD_ENABLE); ModuleSetUserMode(UMODE_n, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_p, IRCD_ENABLE); ModuleSetUserMode(UMODE_q, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_u, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleSetUserMode(UMODE_y, IRCD_ENABLE); ModuleSetUserMode(UMODE_z, IRCD_ENABLE); ModuleUpdateSQLUserMode(); CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); CreateChanBanMode(CMODE_I, add_invite, del_invite); /* Channel Modes */ CreateChanMode(CMODE_B, NULL, NULL); CreateChanMode(CMODE_M, NULL, NULL); CreateChanMode(CMODE_N, NULL, NULL); CreateChanMode(CMODE_O, NULL, NULL); CreateChanMode(CMODE_R, NULL, NULL); CreateChanMode(CMODE_S, NULL, NULL); CreateChanMode(CMODE_Z, NULL, NULL); CreateChanMode(CMODE_c, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); CreateChanMode(CMODE_z, NULL, NULL); ModuleSetChanUMode('%', 'h', STATUS_HALFOP); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleSetChanUMode('&', 'a', STATUS_PROTECTED); ModuleSetChanUMode('~', 'q', STATUS_OWNER); ModuleUpdateSQLChanMode(); }
void IRCDModeInit(void) { /* User Modes * a - admin * h - set host * f - fake host * n - no chan * i - marks a users as invisible; * s - marks a user for receipt of server notices; * w - user receives wallops; * o - operator flag. * d - Deaf & Dumb. This user will not get any channel traffic. Used for bots. * k - This user cannot be kicked, deop'd or /kill'd. This usermode may only * be set by a server, it may not be set by a user. This is used by * undernet service bots (X/W/UWorld etc) * g - List channel HACK:'s * O - local op * R - account only * B - bot * X - xtra op * I - no idle * W - whois * z - SSL */ ModuleSetUserMode(UMODE_a, IRCD_ENABLE); ModuleSetUserMode(UMODE_c, IRCD_ENABLE); ModuleSetUserMode(UMODE_d, IRCD_ENABLE); ModuleSetUserMode(UMODE_f, IRCD_ENABLE); ModuleSetUserMode(UMODE_g, IRCD_ENABLE); ModuleSetUserMode(UMODE_h, IRCD_ENABLE); ModuleSetUserMode(UMODE_i, IRCD_ENABLE); ModuleSetUserMode(UMODE_k, IRCD_ENABLE); ModuleSetUserMode(UMODE_n, IRCD_ENABLE); ModuleSetUserMode(UMODE_o, IRCD_ENABLE); ModuleSetUserMode(UMODE_r, IRCD_ENABLE); ModuleSetUserMode(UMODE_s, IRCD_ENABLE); ModuleSetUserMode(UMODE_x, IRCD_ENABLE); ModuleSetUserMode(UMODE_w, IRCD_ENABLE); ModuleSetUserMode(UMODE_z, IRCD_ENABLE); ModuleSetUserMode(UMODE_B, IRCD_ENABLE); ModuleSetUserMode(UMODE_C, IRCD_ENABLE); ModuleSetUserMode(UMODE_D, IRCD_ENABLE); ModuleSetUserMode(UMODE_I, IRCD_ENABLE); ModuleSetUserMode(UMODE_O, IRCD_ENABLE); ModuleSetUserMode(UMODE_R, IRCD_ENABLE); ModuleSetUserMode(UMODE_W, IRCD_ENABLE); ModuleSetUserMode(UMODE_X, IRCD_ENABLE); ModuleUpdateSQLUserMode(); /* Channel Modes * o - give/take channel operator privileges; * h - halfop * p - private channel flag; * s - secret channel flag; * i - invite-only channel flag; * t - topic settable by channel operator only flag; * n - no messages to channel from clients on the outside; * m - moderated channel; * l - set the user limit to channel; * b - set a ban mask to keep users out; * v - give/take the ability to speak on a moderated channel; * k - set a channel key (password). * r - registered * e - ban excepts * c - no colour * S - strip colour * C - no ctcp * M - acconly * N - no notice * O - oper only * a - admin only * Q - no quit parts * Z - ssl only * T - no amsg * L - no list modes * z - persist */ CreateChanBanMode(CMODE_b, add_ban, del_ban); CreateChanBanMode(CMODE_e, add_exception, del_exception); CreateChanMode(CMODE_a, NULL, NULL); CreateChanMode(CMODE_c, NULL, NULL); CreateChanMode(CMODE_i, NULL, NULL); CreateChanMode(CMODE_k, set_key, get_key); CreateChanMode(CMODE_l, set_limit, get_limit); CreateChanMode(CMODE_m, NULL, NULL); CreateChanMode(CMODE_n, NULL, NULL); CreateChanMode(CMODE_p, NULL, NULL); CreateChanMode(CMODE_r, NULL, NULL); CreateChanMode(CMODE_s, NULL, NULL); CreateChanMode(CMODE_t, NULL, NULL); CreateChanMode(CMODE_z, NULL, NULL); CreateChanMode(CMODE_C, NULL, NULL); CreateChanMode(CMODE_L, NULL, NULL); CreateChanMode(CMODE_M, NULL, NULL); CreateChanMode(CMODE_N, NULL, NULL); CreateChanMode(CMODE_O, NULL, NULL); CreateChanMode(CMODE_Q, NULL, NULL); CreateChanMode(CMODE_S, NULL, NULL); CreateChanMode(CMODE_T, NULL, NULL); CreateChanMode(CMODE_Z, NULL, NULL); ModuleSetChanUMode('+', 'v', STATUS_VOICE); ModuleSetChanUMode('%', 'h', STATUS_HALFOP); ModuleSetChanUMode('@', 'o', STATUS_OP); ModuleUpdateSQLChanMode(); }