#include "services.h"#include "pseudo.h"#include "charybdis.h"
Go to the source code of this file.
Functions | |
| void | charybdis_set_umode (User *user, int ac, char **av) |
| void | charybdis_cmd_notice (char *source, char *dest, char *buf) |
| void | charybdis_cmd_notice2 (char *source, char *dest, char *msg) |
| void | charybdis_cmd_privmsg (char *source, char *dest, char *buf) |
| void | charybdis_cmd_privmsg2 (char *source, char *dest, char *msg) |
| void | charybdis_cmd_serv_notice (char *source, char *dest, char *msg) |
| void | charybdis_cmd_serv_privmsg (char *source, char *dest, char *msg) |
| void | charybdis_cmd_global (char *source, char *buf) |
| void | charybdis_cmd_global_legacy (char *source, char *fmt) |
| int | anope_event_sjoin (char *source, int ac, char **av) |
| int | anope_event_nick (char *source, int ac, char **av) |
| int | anope_event_euid (char *source, int ac, char **av) |
| int | anope_event_topic (char *source, int ac, char **av) |
| int | anope_event_tburst (char *source, int ac, char **av) |
| int | anope_event_436 (char *source, int ac, char **av) |
| void | moduleAddIRCDMsgs (void) |
| void | charybdis_cmd_sqline (char *mask, char *reason) |
| void | charybdis_cmd_unsgline (char *mask) |
| void | charybdis_cmd_unszline (char *mask) |
| void | charybdis_cmd_szline (char *mask, char *reason, char *whom) |
| void | charybdis_cmd_svsnoop (char *server, int set) |
| void | charybdis_cmd_svsadmin (char *server, int set) |
| void | charybdis_cmd_sgline (char *mask, char *reason) |
| void | charybdis_cmd_remove_akill (char *user, char *host) |
| void | charybdis_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when) |
| void | charybdis_cmd_vhost_off (User *u) |
| void | charybdis_cmd_vhost_on (char *nick, char *vIdent, char *vhost) |
| void | charybdis_cmd_unsqline (char *user) |
| void | charybdis_cmd_join (char *user, char *channel, time_t chantime) |
| void | charybdis_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason) |
| void | charybdis_cmd_svskill (char *source, char *user, char *buf) |
| void | charybdis_cmd_svsmode (User *u, int ac, char **av) |
| void | charybdis_cmd_svinfo () |
| void | charybdis_cmd_svsinfo () |
| void | charybdis_cmd_capab () |
| void | charybdis_cmd_pass (char *pass) |
| void | charybdis_cmd_server (char *servname, int hop, char *descript) |
| void | charybdis_cmd_connect (int servernum) |
| void | charybdis_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes) |
| void | charybdis_cmd_part (char *nick, char *chan, char *buf) |
| int | anope_event_ping (char *source, int ac, char **av) |
| int | anope_event_away (char *source, int ac, char **av) |
| int | anope_event_kill (char *source, int ac, char **av) |
| int | anope_event_kick (char *source, int ac, char **av) |
| void | charybdis_cmd_eob () |
| int | anope_event_join (char *source, int ac, char **av) |
| int | anope_event_motd (char *source, int ac, char **av) |
| int | anope_event_privmsg (char *source, int ac, char **av) |
| int | anope_event_part (char *source, int ac, char **av) |
| int | anope_event_whois (char *source, int ac, char **av) |
| int | anope_event_server (char *source, int ac, char **av) |
| int | anope_event_sid (char *source, int ac, char **av) |
| int | anope_event_squit (char *source, int ac, char **av) |
| int | anope_event_quit (char *source, int ac, char **av) |
| void | charybdis_cmd_372 (char *source, char *msg) |
| void | charybdis_cmd_372_error (char *source) |
| void | charybdis_cmd_375 (char *source) |
| void | charybdis_cmd_376 (char *source) |
| void | charybdis_cmd_391 (char *source, char *timestr) |
| void | charybdis_cmd_250 (char *buf) |
| void | charybdis_cmd_307 (char *buf) |
| void | charybdis_cmd_311 (char *buf) |
| void | charybdis_cmd_312 (char *buf) |
| void | charybdis_cmd_317 (char *buf) |
| void | charybdis_cmd_219 (char *source, char *letter) |
| void | charybdis_cmd_401 (char *source, char *who) |
| void | charybdis_cmd_318 (char *source, char *who) |
| void | charybdis_cmd_242 (char *buf) |
| void | charybdis_cmd_243 (char *buf) |
| void | charybdis_cmd_211 (char *buf) |
| void | charybdis_cmd_mode (char *source, char *dest, char *buf) |
| void | charybdis_cmd_tmode (char *source, char *dest, const char *fmt,...) |
| void | charybdis_cmd_nick (char *nick, char *name, char *mode) |
| void | charybdis_cmd_kick (char *source, char *chan, char *user, char *buf) |
| void | charybdis_cmd_notice_ops (char *source, char *dest, char *buf) |
| void | charybdis_cmd_bot_chan_mode (char *nick, char *chan) |
| void | charybdis_cmd_quit (char *source, char *buf) |
| void | charybdis_cmd_pong (char *servname, char *who) |
| void | charybdis_cmd_invite (char *source, char *chan, char *nick) |
| void | charybdis_cmd_squit (char *servname, char *message) |
| int | anope_event_mode (char *source, int ac, char **av) |
| int | anope_event_tmode (char *source, int ac, char **av) |
| void | charybdis_cmd_351 (char *source) |
| int | anope_event_capab (char *source, int ac, char **av) |
| void | charybdis_cmd_svshold (char *nick) |
| void | charybdis_cmd_release_svshold (char *nick) |
| void | charybdis_cmd_svsnick (char *nick, char *newnick, time_t when) |
| void | charybdis_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes) |
| void | charybdis_cmd_svso (char *source, char *nick, char *flag) |
| void | charybdis_cmd_unban (char *name, char *nick) |
| void | charybdis_cmd_svsmode_chan (char *name, char *mode, char *nick) |
| void | charybdis_cmd_svid_umode (char *nick, time_t ts) |
| void | charybdis_cmd_nc_change (User *u) |
| void | charybdis_cmd_svid_umode2 (User *u, char *ts) |
| void | charybdis_cmd_svid_umode3 (User *u, char *ts) |
| void | charybdis_cmd_chg_nick (char *oldnick, char *newnick) |
| int | anope_event_svinfo (char *source, int ac, char **av) |
| int | anope_event_pass (char *source, int ac, char **av) |
| void | charybdis_cmd_svsjoin (char *source, char *nick, char *chan, char *param) |
| void | charybdis_cmd_svspart (char *source, char *nick, char *chan) |
| void | charybdis_cmd_swhois (char *source, char *who, char *mask) |
| int | anope_event_notice (char *source, int ac, char **av) |
| int | anope_event_admin (char *source, int ac, char **av) |
| int | anope_event_invite (char *source, int ac, char **av) |
| int | anope_event_bmask (char *source, int ac, char **av) |
| int | charybdis_flood_mode_check (char *value) |
| int | anope_event_error (char *source, int ac, char **av) |
| void | charybdis_cmd_jupe (char *jserver, char *who, char *reason) |
| int | charybdis_valid_nick (char *nick) |
| int | charybdis_valid_chan (char *chan) |
| void | charybdis_cmd_ctcp (char *source, char *dest, char *buf) |
| int | charybdis_send_account (int argc, char **argv) |
| int | charybdis_send_deaccount (int argc, char **argv) |
| void | moduleAddAnopeCmds () |
| int | AnopeInit (int argc, char **argv) |
| void | AnopeFini (void) |
Variables | |
| IRCDVar | myIrcd [] |
| IRCDCAPAB | myIrcdcap [] |
| unsigned long | umodes [128] |
| char | myCsmodes [128] |
| CMMode | myCmmodes [128] |
| CBMode | myCbmodes [128] |
| CBModeInfo | myCbmodeinfos [] |
| CUMode | myCumodes [128] |
| int anope_event_436 | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_admin | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_away | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1084 of file charybdis.c.
References find_byuid(), m_away(), MOD_CONT, user_::nick, and UseTS6.
| int anope_event_bmask | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1743 of file charybdis.c.
References add_ban(), add_exception(), add_invite(), c, findchan(), MOD_CONT, myNumToken(), myStrGetToken(), sstrdup(), and stricmp().
| int anope_event_capab | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1572 of file charybdis.c.
References capab_parse(), MOD_CONT, myStrGetToken(), scalloc(), and srealloc().
| int anope_event_error | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_euid | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 633 of file charybdis.c.
References anope_set_umode(), do_nick(), findserver_uid(), MOD_CONT, server_::name, servlist, stricmp(), and UseTS6.
Referenced by moduleAddIRCDMsgs().
| int anope_event_invite | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_join | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_kick | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_kill | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1097 of file charybdis.c.
References find_byuid(), m_kill(), MOD_CONT, user_::nick, and UseTS6.
| int anope_event_mode | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1533 of file charybdis.c.
References do_cmode(), do_umode(), find_byuid(), MOD_CONT, user_::nick, and UseTS6.
| int anope_event_motd | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_nick | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 590 of file charybdis.c.
References anope_set_umode(), do_nick(), findserver_uid(), MOD_CONT, server_::name, servlist, and UseTS6.
| int anope_event_notice | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_part | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1163 of file charybdis.c.
References do_part(), find_byuid(), MOD_CONT, user_::nick, and UseTS6.
| int anope_event_pass | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_ping | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1076 of file charybdis.c.
References charybdis_cmd_pong(), MOD_CONT, and ServerName.
| int anope_event_privmsg | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1147 of file charybdis.c.
References find_byuid(), find_nickuid(), m_privmsg(), MOD_CONT, uid_::nick, user_::nick, and UseTS6.
| int anope_event_quit | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1224 of file charybdis.c.
References do_quit(), find_byuid(), MOD_CONT, user_::nick, and UseTS6.
| int anope_event_server | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1189 of file charybdis.c.
References do_server(), MOD_CONT, sstrdup(), stricmp(), TS6UPLINK, uplink, and UseTS6.
| int anope_event_sid | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1204 of file charybdis.c.
References do_server(), findserver_uid(), MOD_CONT, server_::name, and servlist.
| int anope_event_sjoin | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_squit | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_svinfo | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_tburst | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 703 of file charybdis.c.
References alog(), c, check_topiclock(), debug, EVENT_TOPIC_UPDATED, findchan(), merge_args(), MOD_CONT, myStrGetToken(), record_topic(), send_event(), sstrdup(), strscpy(), channel_::topic, channel_::topic_setter, and channel_::topic_time.
Referenced by moduleAddIRCDMsgs().
| int anope_event_tmode | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
| int anope_event_topic | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 653 of file charybdis.c.
References alog(), c, check_topiclock(), debug, do_topic(), EVENT_TOPIC_UPDATED, find_byuid(), findchan(), merge_args(), MOD_CONT, user_::nick, record_topic(), send_event(), sstrdup(), strscpy(), channel_::topic, channel_::topic_setter, channel_::topic_time, and UseTS6.
| int anope_event_whois | ( | char * | source, | |
| int | ac, | |||
| char ** | av | |||
| ) |
Definition at line 1177 of file charybdis.c.
References find_nickuid(), m_whois(), MOD_CONT, uid_::nick, and UseTS6.
| void AnopeFini | ( | void | ) |
| int AnopeInit | ( | int | argc, | |
| char ** | argv | |||
| ) |
Now tell anope how to use us.
Deal with modes anope _needs_ to know
Definition at line 1955 of file charybdis.c.
References charybdis_send_account(), charybdis_send_deaccount(), CMODE_i, CMODE_k, CMODE_l, CMODE_p, CMODE_s, createEventHook(), EVENT_NICK_IDENTIFY, EVENT_NICK_LOGOUT, EVENT_NICK_REGISTERED, MOD_CONT, moduleAddAnopeCmds(), moduleAddAuthor(), moduleAddEventHook(), moduleAddIRCDMsgs(), moduleAddVersion(), moduleSetType(), myCsmodes, pmodule_invis_umode(), pmodule_invite_cmode(), pmodule_ircd_cap(), pmodule_ircd_cbmodeinfos(), pmodule_ircd_cbmodes(), pmodule_ircd_cmmodes(), pmodule_ircd_csmodes(), pmodule_ircd_cumodes(), pmodule_ircd_flood_mode_char_remove(), pmodule_ircd_flood_mode_char_set(), pmodule_ircd_useTSMode(), pmodule_ircd_var(), pmodule_ircd_version(), pmodule_key_mode(), pmodule_limit_mode(), pmodule_oper_umode(), pmodule_private_cmode(), pmodule_secret_cmode(), PROTOCOL, UMODE_i, and UMODE_o.
| void charybdis_cmd_211 | ( | char * | buf | ) |
Definition at line 1378 of file charybdis.c.
References send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_219 | ( | char * | source, | |
| char * | letter | |||
| ) |
Definition at line 1322 of file charybdis.c.
References send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_242 | ( | char * | buf | ) |
Definition at line 1358 of file charybdis.c.
References send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_243 | ( | char * | buf | ) |
Definition at line 1368 of file charybdis.c.
References send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_250 | ( | char * | buf | ) |
Definition at line 1272 of file charybdis.c.
References send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_307 | ( | char * | buf | ) |
Definition at line 1282 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_311 | ( | char * | buf | ) |
Definition at line 1292 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_312 | ( | char * | buf | ) |
Definition at line 1302 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_317 | ( | char * | buf | ) |
Definition at line 1312 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_318 | ( | char * | source, | |
| char * | who | |||
| ) |
Definition at line 1347 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_351 | ( | char * | source | ) |
Definition at line 1564 of file charybdis.c.
References EncModule, ircd, ircdvars_::name, send_cmd(), ServerName, TS6SID, UseTS6, version_build, version_flags, and version_number.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_372 | ( | char * | source, | |
| char * | msg | |||
| ) |
Definition at line 1238 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_372_error | ( | char * | source | ) |
Definition at line 1243 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_375 | ( | char * | source | ) |
Definition at line 1250 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_376 | ( | char * | source | ) |
Definition at line 1256 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_391 | ( | char * | source, | |
| char * | timestr | |||
| ) |
Definition at line 1263 of file charybdis.c.
References send_cmd(), and ServerName.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_401 | ( | char * | source, | |
| char * | who | |||
| ) |
Definition at line 1337 of file charybdis.c.
References send_cmd(), ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_akill | ( | char * | user, | |
| char * | host, | |||
| char * | who, | |||
| time_t | when, | |||
| time_t | expires, | |||
| char * | reason | |||
| ) |
Definition at line 926 of file charybdis.c.
References find_uid(), s_OperServ, send_cmd(), uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_bot_chan_mode | ( | char * | nick, | |
| char * | chan | |||
| ) |
Definition at line 1468 of file charybdis.c.
References anope_cmd_mode(), ircdvars_::botchanumode, charybdis_cmd_tmode(), find_uid(), ircd, ServerName, uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_bot_nick | ( | char * | nick, | |
| char * | user, | |||
| char * | host, | |||
| char * | real, | |||
| char * | modes | |||
| ) |
Definition at line 1045 of file charybdis.c.
References charybdis_cmd_sqline(), EnforceQlinedNick(), new_uid(), send_cmd(), ServerName, ts6_uid_retrieve(), TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_capab | ( | ) |
Definition at line 1001 of file charybdis.c.
References send_cmd().
Referenced by charybdis_cmd_connect().
| void charybdis_cmd_chg_nick | ( | char * | oldnick, | |
| char * | newnick | |||
| ) |
Definition at line 1682 of file charybdis.c.
References send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_connect | ( | int | servernum | ) |
Definition at line 1023 of file charybdis.c.
References charybdis_cmd_capab(), charybdis_cmd_pass(), charybdis_cmd_server(), charybdis_cmd_svinfo(), me_server, new_server(), RemotePassword, RemotePassword2, RemotePassword3, SERVER_ISME, ServerDesc, ServerName, TS6SID, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_ctcp | ( | char * | source, | |
| char * | dest, | |||
| char * | buf | |||
| ) |
Definition at line 1838 of file charybdis.c.
References normalizeBuffer(), and send_cmd().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_eob | ( | ) |
| void charybdis_cmd_global | ( | char * | source, | |
| char * | buf | |||
| ) |
Definition at line 521 of file charybdis.c.
References find_uid(), send_cmd(), ServerName, TS6SID, uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_global_legacy | ( | char * | source, | |
| char * | fmt | |||
| ) |
Definition at line 542 of file charybdis.c.
References find_uid(), send_cmd(), ServerName, TS6SID, uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_guest_nick | ( | char * | nick, | |
| char * | user, | |||
| char * | host, | |||
| char * | real, | |||
| char * | modes | |||
| ) |
| void charybdis_cmd_invite | ( | char * | source, | |
| char * | chan, | |||
| char * | nick | |||
| ) |
Definition at line 1507 of file charybdis.c.
References find_uid(), finduser(), send_cmd(), user_::uid, uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_join | ( | char * | user, | |
| char * | channel, | |||
| time_t | chantime | |||
| ) |
Definition at line 908 of file charybdis.c.
References find_uid(), send_cmd(), uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_jupe | ( | char * | jserver, | |
| char * | who, | |||
| char * | reason | |||
| ) |
Definition at line 1802 of file charybdis.c.
References charybdis_cmd_server(), charybdis_cmd_squit(), findserver(), me_server, new_server(), SERVER_JUPED, servlist, and snprintf().
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_kick | ( | char * | source, | |
| char * | chan, | |||
| char * | user, | |||
| char * | buf | |||
| ) |
Definition at line 1438 of file charybdis.c.
References find_uid(), finduser(), send_cmd(), user_::uid, uid_::uid, and UseTS6.
Referenced by moduleAddAnopeCmds().
| void charybdis_cmd_mode | ( | char * | source, | |
| char * | dest, | |||
| char * | buf | |||
| ) |