Anope IRC Services  Version 1.8
Macros | Typedefs | Functions | Variables
extern.h File Reference
#include "slist.h"
Include dependency graph for extern.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define E   extern
 
#define EI   extern
 
#define whosends(ci)   ((!(ci) || !((ci)->botflags & BS_SYMBIOSIS) || !(ci)->bi || !(ci)->c || (ci)->c->usercount < BSMinUsers) ? s_ChanServ : (ci)->bi->nick)
 
#define vsnprintf   my_vsnprintf
 
#define getstring(na, index)   (langtexts[((na)&&((NickAlias*)na)->nc&&!(((NickAlias*)na)->status & NS_VERBOTEN)?((NickAlias*)na)->nc->language:NSDefLanguage)][(index)])
 
#define getstring2(nc, index)   (langtexts[((nc)?((NickCore*)nc)->language:NSDefLanguage)][(index)])
 
#define Anope_Free(x)   if ((x) != NULL) free(x)
 

Typedefs

typedef int(* range_callback_t )(User *u, int num, va_list args)
 

Functions

E void ModuleRunTimeDirCleanUp (void)
 
E void kill_user (char *source, char *user, char *reason)
 
E void bad_password (User *u)
 
E void sqline (char *mask, char *reason)
 
E void common_unban (ChannelInfo *ci, char *nick)
 
E void common_unban_full (ChannelInfo *ci, char *nick, boolean full)
 
E void common_svsmode (User *u, char *modes, char *arg)
 
E void get_botserv_stats (long *nrec, long *memuse)
 
E void bs_init (void)
 
E void botserv (User *u, char *buf)
 
E void botmsgs (User *u, BotInfo *bi, char *buf)
 
E void botchanmsgs (User *u, ChannelInfo *ci, char *buf)
 
E void load_bs_dbase (void)
 
E void save_bs_dbase (void)
 
E void save_bs_rdb_dbase (void)
 
E BotInfomakebot (char *nick)
 
E BotInfofindbot (char *nick)
 
E void bot_join (ChannelInfo *ci)
 
E void bot_rejoin_all (BotInfo *bi)
 
E char * normalizeBuffer (char *)
 
E void unassign (User *u, ChannelInfo *ci)
 
E void insert_bot (BotInfo *bi)
 
E void bot_raw_ban (User *requester, ChannelInfo *ci, char *nick, char *reason)
 
E void bot_raw_kick (User *requester, ChannelInfo *ci, char *nick, char *reason)
 
E void bot_raw_mode (User *requester, ChannelInfo *ci, char *mode, char *nick)
 
E void add_ban (Channel *chan, char *mask)
 
E void chan_adduser2 (User *user, Channel *c)
 
E void add_invite (Channel *chan, char *mask)
 
E void chan_delete (Channel *c)
 
E void del_ban (Channel *chan, char *mask)
 
E void chan_set_throttle (Channel *chan, char *value)
 
E void chan_set_key (Channel *chan, char *value)
 
E void set_limit (Channel *chan, char *value)
 
E void del_invite (Channel *chan, char *mask)
 
E char * get_key (Channel *chan)
 
E char * get_limit (Channel *chan)
 
E Channelchan_create (char *chan, time_t ts)
 
E Channeljoin_user_update (User *user, Channel *chan, char *name, time_t chants)
 
E void add_exception (Channel *chan, char *mask)
 
E void del_exception (Channel *chan, char *mask)
 
E char * get_flood (Channel *chan)
 
E void set_flood (Channel *chan, char *value)
 
E char * get_throttle (Channel *chan)
 
E void set_throttle (Channel *chan, char *value)
 
E char * get_redirect (Channel *chan)
 
E void set_redirect (Channel *chan, char *value)
 
E char * get_unkwn (Channel *chan)
 
E void set_unkwn (Channel *chan, char *value)
 
E void get_channel_stats (long *nrec, long *memuse)
 
E Channelfindchan (const char *chan)
 
E Channelfirstchan (void)
 
E Channelnextchan (void)
 
E void chan_deluser (User *user, Channel *c)
 
E int is_on_chan (Channel *c, User *u)
 
E Usernc_on_chan (Channel *c, NickCore *nc)
 
E char * chan_get_modes (Channel *chan, int complete, int plus)
 
E void chan_set_modes (const char *source, Channel *chan, int ac, char **av, int check)
 
E int chan_get_user_status (Channel *chan, User *user)
 
E int chan_has_user_status (Channel *chan, User *user, int16 status)
 
E void chan_remove_user_status (Channel *chan, User *user, int16 status)
 
E void chan_set_user_status (Channel *chan, User *user, int16 status)
 
E int get_access_level (ChannelInfo *ci, NickAlias *na)
 
E const char * get_xop_level (int level)
 
E void do_cmode (const char *source, int ac, char **av)
 
E void do_join (const char *source, int ac, char **av)
 
E void do_kick (const char *source, int ac, char **av)
 
E void do_part (const char *source, int ac, char **av)
 
E void do_sjoin (const char *source, int ac, char **av)
 
E void do_topic (const char *source, int ac, char **av)
 
E void do_mass_mode (char *modes)
 
E void chan_set_correct_modes (User *user, Channel *c, int give_modes)
 
E void restore_unsynced_topics (void)
 
E Entryentry_create (char *mask)
 
E Entryentry_add (EList *list, char *mask)
 
E void entry_delete (EList *list, Entry *e)
 
E EListlist_create ()
 
E int entry_match (Entry *e, char *nick, char *user, char *host, uint32 ip)
 
E int entry_match_mask (Entry *e, char *mask, uint32 ip)
 
E Entryelist_match (EList *list, char *nick, char *user, char *host, uint32 ip)
 
E Entryelist_match_mask (EList *list, char *mask, uint32 ip)
 
E Entryelist_match_user (EList *list, User *u)
 
E Entryelist_match_user_full (EList *list, User *u, boolean full)
 
E Entryelist_find_mask (EList *list, char *mask)
 
E long get_memuse (EList *list)
 
E void listchans (int count_only, const char *chan)
 
E void get_chanserv_stats (long *nrec, long *memuse)
 
E int delchan (ChannelInfo *ci)
 
E void alpha_insert_chan (ChannelInfo *ci)
 
E void reset_levels (ChannelInfo *ci)
 
E void cs_init (void)
 
E void chanserv (User *u, char *buf)
 
E void load_cs_dbase (void)
 
E void save_cs_dbase (void)
 
E void save_cs_rdb_dbase (void)
 
E void expire_chans (void)
 
E void cs_remove_nick (const NickCore *nc)
 
E void cs_remove_bot (const BotInfo *bi)
 
E int is_real_founder (User *user, ChannelInfo *ci)
 
E void check_modes (Channel *c)
 
E int check_valid_admin (User *user, Channel *chan, int servermode)
 
E int check_valid_op (User *user, Channel *chan, int servermode)
 
E int check_should_op (User *user, char *chan)
 
E int check_should_voice (User *user, char *chan)
 
E int check_should_halfop (User *user, char *chan)
 
E int check_should_owner (User *user, char *chan)
 
E int check_should_protect (User *user, char *chan)
 
E int check_kick (User *user, char *chan, time_t chants)
 
E void record_topic (const char *chan)
 
E void restore_topic (char *chan)
 
E int check_topiclock (Channel *c, time_t topic_time)
 
E ChannelInfocs_findchan (const char *chan)
 
E int check_access (User *user, ChannelInfo *ci, int what)
 
E int is_founder (User *user, ChannelInfo *ci)
 
E int get_access (User *user, ChannelInfo *ci)
 
E ChanAccessget_access_entry (NickCore *nc, ChannelInfo *ci)
 
E void update_cs_lastseen (User *user, ChannelInfo *ci)
 
E int get_idealban (ChannelInfo *ci, User *u, char *ret, int retlen)
 
E AutoKickis_stuck (ChannelInfo *ci, char *mask)
 
E void stick_mask (ChannelInfo *ci, AutoKick *akick)
 
E void stick_all (ChannelInfo *ci)
 
E char * cs_get_flood (ChannelInfo *ci)
 
E void cs_set_flood (ChannelInfo *ci, char *value)
 
E char * cs_get_throttle (ChannelInfo *ci)
 
E void cs_set_throttle (ChannelInfo *ci, char *value)
 
E char * cs_get_key (ChannelInfo *ci)
 
E void cs_set_key (ChannelInfo *ci, char *value)
 
E char * cs_get_limit (ChannelInfo *ci)
 
E void cs_set_limit (ChannelInfo *ci, char *value)
 
E char * cs_get_redirect (ChannelInfo *ci)
 
E void cs_set_redirect (ChannelInfo *ci, char *value)
 
E char * cs_get_unkwn (ChannelInfo *ci)
 
E void cs_set_unkwn (ChannelInfo *ci, char *value)
 
E ChannelInfomakechan (const char *chan)
 
E int is_identified (User *user, ChannelInfo *ci)
 
E char * get_mlock_modes (ChannelInfo *ci, int complete)
 
E void CleanAccess (ChannelInfo *ci)
 
E int vsnprintf (char *buf, size_t size, const char *fmt, va_list args)
 
E int snprintf (char *buf, size_t size, const char *fmt,...)
 
E int stricmp (const char *s1, const char *s2)
 
E int strnicmp (const char *s1, const char *s2, size_t len)
 
E char * strdup (const char *s)
 
E size_t strspn (const char *s, const char *accept)
 
E char * strerror (int errnum)
 
char * strsignal (int signum)
 
E void load_hs_dbase (void)
 
E void save_hs_dbase (void)
 
E void save_hs_rdb_dbase (void)
 
E int do_on_id (User *u)
 
E void delHostCore (char *nick)
 
E void hostserv (User *u, char *buf)
 
E int parse_directive (Directive *d, char *dir, int ac, char *av[MAXPARAMS], int linenum, int reload, char *s)
 
E int read_config (int reload)
 
E int checkDefCon (int level)
 
E void resetDefCon (int level)
 
E int enc_encrypt (const char *src, int len, char *dest, int size)
 
E int enc_encrypt_check_len (int passlen, int bufsize)
 
E int enc_decrypt (const char *src, char *dest, int size)
 
E int enc_check_password (const char *plaintext, const char *password)
 
E void encmodule_encrypt (int(*func)(const char *src, int len, char *dest, int size))
 
E void encmodule_encrypt_check_len (int(*func)(int passlen, int bufsize))
 
E void encmodule_decrypt (int(*func)(const char *src, char *dest, int size))
 
E void encmodule_check_password (int(*func)(const char *plaintext, const char *password))
 
E void helpserv (User *u, char *buf)
 
E void helpserv_init (void)
 
E void get_hostserv_stats (long *nrec, long *memuse)
 
E void hostserv_init (void)
 
E void addHostCore (char *nick, char *vIdent, char *vhost, char *creator, int32 tmp_time)
 
E char * getvIdent (char *nick)
 
E char * getvHost (char *nick)
 
E int is_host_remover (User *u)
 
E int is_host_setter (User *u)
 
E HostCorehostCoreListHead ()
 
E HostCorefindHostCore (HostCore *head, char *nick, boolean *found)
 
E HostCorecreateHostCorelist (HostCore *next, char *nick, char *vIdent, char *vHost, char *creator, int32 tmp_time)
 
E HostCoreinsertHostCore (HostCore *head, HostCore *prev, char *nick, char *vIdent, char *vHost, char *creator, int32 tmp_time)
 
E HostCoredeleteHostCore (HostCore *head, HostCore *prev)
 
E void set_lastmask (User *u)
 
E void introduce_user (const char *user)
 
E int init_primary (int ac, char **av)
 
E int init_secondary (int ac, char **av)
 
E void init_tertiary ()
 
E void pmodule_set_mod_current_buffer (void(*func)(int ac, char **av))
 
E void pmodule_cmd_svsnoop (void(*func)(char *server, int set))
 
E void pmodule_cmd_remove_akill (void(*func)(char *user, char *host))
 
E void pmodule_cmd_topic (void(*func)(char *whosets, char *chan, char *whosetit, char *topic, time_t when))
 
E void pmodule_cmd_vhost_off (void(*func)(User *u))
 
E void pmodule_cmd_akill (void(*func)(char *user, char *host, char *who, time_t when, time_t expires, char *reason))
 
E void pmodule_cmd_svskill (void(*func)(char *source, char *user, char *buf))
 
E void pmodule_cmd_svsmode (void(*func)(User *u, int ac, char **av))
 
E void pmodule_cmd_372 (void(*func)(char *source, char *msg))
 
E void pmodule_cmd_372_error (void(*func)(char *source))
 
E void pmodule_cmd_375 (void(*func)(char *source))
 
E void pmodule_cmd_376 (void(*func)(char *source))
 
E void pmodule_cmd_nick (void(*func)(char *nick, char *name, char *modes))
 
E void pmodule_cmd_guest_nick (void(*func)(char *nick, char *user, char *host, char *real, char *modes))
 
E void pmodule_cmd_mode (void(*func)(char *source, char *dest, char *buf))
 
E void pmodule_cmd_bot_nick (void(*func)(char *nick, char *user, char *host, char *real, char *modes))
 
E void pmodule_cmd_kick (void(*func)(char *source, char *chan, char *user, char *buf))
 
E void pmodule_cmd_notice_ops (void(*func)(char *source, char *dest, char *buf))
 
E void pmodule_cmd_notice (void(*func)(char *source, char *dest, char *buf))
 
E void pmodule_cmd_notice2 (void(*func)(char *source, char *dest, char *msg))
 
E void pmodule_cmd_privmsg (void(*func)(char *source, char *dest, char *buf))
 
E void pmodule_cmd_privmsg2 (void(*func)(char *source, char *dest, char *msg))
 
E void pmodule_cmd_serv_notice (void(*func)(char *source, char *dest, char *msg))
 
E void pmodule_cmd_serv_privmsg (void(*func)(char *source, char *dest, char *msg))
 
E void pmodule_cmd_bot_chan_mode (void(*func)(char *nick, char *chan))
 
E void pmodule_cmd_351 (void(*func)(char *source))
 
E void pmodule_cmd_quit (void(*func)(char *source, char *buf))
 
E void pmodule_cmd_pong (void(*func)(char *servname, char *who))
 
E void pmodule_cmd_join (void(*func)(char *user, char *channel, time_t chantime))
 
E void pmodule_cmd_unsqline (void(*func)(char *user))
 
E void pmodule_cmd_invite (void(*func)(char *source, char *chan, char *nick))
 
E void pmodule_cmd_part (void(*func)(char *nick, char *chan, char *buf))
 
E void pmodule_cmd_391 (void(*func)(char *source, char *timestr))
 
E void pmodule_cmd_250 (void(*func)(char *buf))
 
E void pmodule_cmd_307 (void(*func)(char *buf))
 
E void pmodule_cmd_311 (void(*func)(char *buf))
 
E void pmodule_cmd_312 (void(*func)(char *buf))
 
E void pmodule_cmd_317 (void(*func)(char *buf))
 
E void pmodule_cmd_219 (void(*func)(char *source, char *letter))
 
E void pmodule_cmd_401 (void(*func)(char *source, char *who))
 
E void pmodule_cmd_318 (void(*func)(char *source, char *who))
 
E void pmodule_cmd_242 (void(*func)(char *buf))
 
E void pmodule_cmd_243 (void(*func)(char *buf))
 
E void pmodule_cmd_211 (void(*func)(char *buf))
 
E void pmodule_cmd_global (void(*func)(char *source, char *buf))
 
E void pmodule_cmd_global_legacy (void(*func)(char *source, char *fmt))
 
E void pmodule_cmd_sqline (void(*func)(char *mask, char *reason))
 
E void pmodule_cmd_squit (void(*func)(char *servname, char *message))
 
E void pmodule_cmd_svso (void(*func)(char *source, char *nick, char *flag))
 
E void pmodule_cmd_chg_nick (void(*func)(char *oldnick, char *newnick))
 
E void pmodule_cmd_svsnick (void(*func)(char *source, char *guest, time_t when))
 
E void pmodule_cmd_vhost_on (void(*func)(char *nick, char *vIdent, char *vhost))
 
E void pmodule_cmd_connect (void(*func)(int servernum))
 
E void pmodule_cmd_bob (void(*func)())
 
E void pmodule_cmd_svshold (void(*func)(char *nick))
 
E void pmodule_cmd_release_svshold (void(*func)(char *nick))
 
E void pmodule_cmd_unsgline (void(*func)(char *mask))
 
E void pmodule_cmd_unszline (void(*func)(char *mask))
 
E void pmodule_cmd_szline (void(*func)(char *mask, char *reason, char *whom))
 
E void pmodule_cmd_sgline (void(*func)(char *mask, char *reason))
 
E void pmodule_cmd_unban (void(*func)(char *name, char *nick))
 
E void pmodule_cmd_svsmode_chan (void(*func)(char *name, char *mode, char *nick))
 
E void pmodule_cmd_svid_umode (void(*func)(char *nick, time_t ts))
 
E void pmodule_cmd_nc_change (void(*func)(User *u))
 
E void pmodule_cmd_svid_umode2 (void(*func)(User *u, char *ts))
 
E void pmodule_cmd_svid_umode3 (void(*func)(User *u, char *ts))
 
E void pmodule_cmd_ctcp (void(*func)(char *source, char *dest, char *buf))
 
E void pmodule_cmd_svsjoin (void(*func)(char *source, char *nick, char *chan, char *param))
 
E void pmodule_cmd_svspart (void(*func)(char *source, char *nick, char *chan))
 
E void pmodule_cmd_swhois (void(*func)(char *source, char *who, char *mask))
 
E void pmodule_cmd_eob (void(*func)())
 
E void pmodule_cmd_jupe (void(*func)(char *jserver, char *who, char *reason))
 
E void pmodule_set_umode (void(*func)(User *user, int ac, char **av))
 
E void pmodule_valid_nick (int(*func)(char *nick))
 
E void pmodule_valid_chan (int(*func)(char *chan))
 
E void pmodule_flood_mode_check (int(*func)(char *value))
 
E void pmodule_jointhrottle_mode_check (int(*func)(char *value))
 
E void pmodule_ircd_var (IRCDVar *ircdvar)
 
E void pmodule_ircd_cap (IRCDCAPAB *cap)
 
E void pmodule_ircd_version (char *version)
 
E void pmodule_ircd_cbmodeinfos (CBModeInfo *modeinfos)
 
E void pmodule_ircd_cumodes (CUMode modes[128])
 
E void pmodule_ircd_flood_mode_char_set (char *mode)
 
E void pmodule_ircd_flood_mode_char_remove (char *mode)
 
E void pmodule_ircd_cbmodes (CBMode modes[128])
 
E void pmodule_ircd_cmmodes (CMMode modes[128])
 
E void pmodule_ircd_csmodes (char mode[128])
 
E void pmodule_ircd_useTSMode (int use)
 
E void pmodule_invis_umode (int mode)
 
E void pmodule_oper_umode (int mode)
 
E void pmodule_invite_cmode (int mode)
 
E void pmodule_secret_cmode (int mode)
 
E void pmodule_private_cmode (int mode)
 
E void pmodule_key_mode (int mode)
 
E void pmodule_limit_mode (int mode)
 
E void pmodule_permchan_mode (int mode)
 
E int anope_get_secret_mode ()
 
E int anope_get_invite_mode ()
 
E int anope_get_key_mode ()
 
E int anope_get_limit_mode ()
 
E int anope_get_private_mode ()
 
E int anope_get_invis_mode ()
 
E int anope_get_oper_mode ()
 
E int anope_get_permchan_mode ()
 
E void lang_init (void)
 
E int strftime_lang (char *buf, int size, User *u, int format, struct tm *tm)
 
E void syntax_error (char *service, User *u, const char *command, int msgnum)
 
E void do_listnicks (int ac, char **av)
 
E void do_listchans (int ac, char **av)
 
E int open_log (void)
 
E void close_log (void)
 
E void alog (const char *fmt,...) FORMAT(printf
 
E void E void log_perror (const char *fmt,...) FORMAT(printf
 
E void E void E void fatal (const char *fmt,...) FORMAT(printf
 
E void E void E void E void fatal_perror (const char *fmt,...) FORMAT(printf
 
E void E void E void E void E
MailInfo
MailBegin (User *u, NickCore *nc, char *subject, char *service)
 
E MailInfoMailRegBegin (User *u, NickRequest *nr, char *subject, char *service)
 
E MailInfoMailMemoBegin (NickCore *nc)
 
E void MailEnd (MailInfo *mail)
 
E void MailReset (User *u, NickCore *nc)
 
E int MailValidate (const char *email)
 
E void save_databases (void)
 
E void expire_all (void)
 
E void do_backtrace (int show_segheader)
 
E void sighandler (int signum)
 
E void do_restart_services (void)
 
E void * smalloc (long size)
 
E void * scalloc (long elsize, long els)
 
E void * srealloc (void *oldptr, long newsize)
 
E char * sstrdup (const char *s)
 
E void ms_init (void)
 
E void memoserv (User *u, char *buf)
 
E void check_memos (User *u)
 
E MemoInfogetmemoinfo (const char *name, int *ischan, int *isforbid)
 
E void memo_send (User *u, char *name, char *text, int z)
 
E void memo_send_from (User *u, char *name, char *text, int z, char *source)
 
E int delmemo (MemoInfo *mi, int num)
 
E int m_nickcoll (char *user)
 
E int m_away (char *source, char *msg)
 
E int m_kill (char *nick, char *msg)
 
E int m_motd (char *source)
 
E int m_privmsg (char *source, char *receiver, char *msg)
 
E int m_stats (char *source, int ac, char **av)
 
E int m_whois (char *source, char *who)
 
E int m_time (char *source, int ac, char **av)
 
E int m_version (char *source, int ac, char **av)
 
E int toupper (char)
 
E int tolower (char)
 
E char * strscpy (char *d, const char *s, size_t len)
 
E size_t strlcpy (char *, const char *, size_t)
 
E size_t strlcat (char *, const char *, size_t)
 
E char * stristr (char *s1, char *s2)
 
E char * strnrepl (char *s, int32 size, const char *old, const char *new)
 
E char * merge_args (int argc, char **argv)
 
E int match_wild (const char *pattern, const char *str)
 
E int match_wild_nocase (const char *pattern, const char *str)
 
E int dotime (const char *s)
 
E char * duration (NickAlias *na, char *buf, int bufsize, time_t seconds)
 
E char * expire_left (NickAlias *na, char *buf, int len, time_t expires)
 
E void protocol_debug (char *source, char *cmd, int argc, char **argv)
 
E int doValidHost (const char *host, int type)
 
E int process_numlist (const char *numstr, int *count_ret, range_callback_t callback, User *u,...)
 
E int isValidHost (const char *host, int type)
 
E int isvalidchar (const char c)
 
E char * myStrGetToken (const char *str, const char dilim, int token_number)
 
E char * myStrGetOnlyToken (const char *str, const char dilim, int token_number)
 
E char * myStrSubString (const char *src, int start, int end)
 
E char * myStrGetTokenRemainder (const char *str, const char dilim, int token_number)
 
E char * stripModePrefix (const char *str)
 
E int myNumToken (const char *str, const char dilim)
 
E void doCleanBuffer (char *str)
 
E void EnforceQlinedNick (char *nick, char *killer)
 
E int nickIsServices (char *nick, int bot)
 
E void add_entropy_userkeys (void)
 
E void rand_init (void)
 
E unsigned char getrandom8 (void)
 
E u_int16_t getrandom16 (void)
 
E u_int32_t getrandom32 (void)
 
E char * str_signed (unsigned char *str)
 
E void ntoa (struct in_addr addr, char *ipaddr, int len)
 
E char ** buildStringList (char *src, int *number)
 
E void binary_to_hex (unsigned char *bin, char *hex, int length)
 
E uint32 cidr_to_netmask (uint16 cidr)
 
E uint16 netmask_to_cidr (uint32 mask)
 
E int str_is_wildcard (const char *str)
 
E int str_is_pure_wildcard (const char *str)
 
E uint32 str_is_ip (char *str)
 
E int str_is_cidr (char *str, uint32 *ip, uint32 *mask, char **host)
 
E void modules_core_init (int number, char **list)
 
E void modules_unload_all (boolean fini, boolean unload_proto)
 
E void moduleCallBackRun (void)
 
E void moduleCleanStruct (ModuleData **moduleData)
 
E void ModuleDatabaseBackup (char *dbname)
 
E void ModuleRemoveBackups (char *dbname)
 
E void get_news_stats (long *nrec, long *memuse)
 
E void load_news (void)
 
E void save_news (void)
 
E void save_rdb_news (void)
 
E void display_news (User *u, int16 type)
 
E int do_logonnews (User *u)
 
E int do_opernews (User *u)
 
E int do_randomnews (User *u)
 
E NickRequestfindrequestnick (const char *nick)
 
E int delnickrequest (NickRequest *nr)
 
E void insert_requestnick (NickRequest *nr)
 
E void alpha_insert_alias (NickAlias *na)
 
E void insert_core (NickCore *nc)
 
E void listnicks (int count_only, const char *nick)
 
E void get_aliases_stats (long *nrec, long *memuse)
 
E void get_core_stats (long *nrec, long *memuse)
 
E void collide (NickAlias *na, int from_timeout)
 
E void del_ns_timeout (NickAlias *na, int type)
 
E void change_core_display (NickCore *nc, char *newdisplay)
 
E void release (NickAlias *na, int from_timeout)
 
E int do_setmodes (User *u)
 
E int should_mode_change (int16 status, int16 mode)
 
E void ns_init (void)
 
E void nickserv (User *u, char *buf)
 
E void load_ns_dbase (void)
 
E void load_ns_req_db (void)
 
E void save_ns_dbase (void)
 
E void save_ns_req_dbase (void)
 
E void save_ns_rdb_dbase (void)
 
E void save_ns_req_rdb_dbase (void)
 
E int validate_user (User *u)
 
E void cancel_user (User *u)
 
E int nick_identified (User *u)
 
E int nick_recognized (User *u)
 
E void expire_nicks (void)
 
E void expire_requests (void)
 
EI int ns_do_register (User *u)
 
E int delnick (NickAlias *na)
 
E NickAliasfindnick (const char *nick)
 
E NickCorefindcore (const char *nick)
 
E void clean_ns_timeouts (NickAlias *na)
 
E void nsStartNickTracking (User *u)
 
E void nsStopNickTracking (User *u)
 
E int nsCheckNickTracking (User *u)
 
E int group_identified (User *u, NickCore *nc)
 
E int is_on_access (User *u, NickCore *nc)
 
E void operserv (User *u, char *buf)
 
E void os_init (void)
 
E void load_os_dbase (void)
 
E void save_os_dbase (void)
 
E void save_os_rdb_dbase (void)
 
E void os_remove_nick (NickCore *nc)
 
E int is_services_root (User *u)
 
E int is_services_admin (User *u)
 
E int is_services_oper (User *u)
 
E int nick_is_services_root (NickCore *nc)
 
E int nick_is_services_admin (NickCore *nc)
 
E int nick_is_services_oper (NickCore *nc)
 
E int add_akill (User *u, char *mask, const char *by, const time_t expires, const char *reason)
 
E int check_akill (char *nick, const char *username, const char *host, const char *vhost, const char *ip)
 
E void expire_akills (void)
 
E void oper_global (char *nick, char *fmt,...)
 
E int add_sgline (User *u, char *mask, const char *by, const time_t expires, const char *reason)
 
E int check_sgline (char *nick, const char *realname)
 
E void expire_sglines (void)
 
E int add_sqline (User *u, char *mask, const char *by, const time_t expires, const char *reason)
 
E int check_sqline (char *nick, int nick_change)
 
E void expire_sqlines (void)
 
E int check_chan_sqline (const char *chan)
 
E int add_szline (User *u, char *mask, const char *by, const time_t expires, const char *reason)
 
E void expire_szlines (void)
 
E int check_szline (char *nick, char *ip)
 
E Serverserver_global (Server *s, char *msg)
 
E void runDefCon (void)
 
E int defconParseModeString (const char *str)
 
E void add_ignore (const char *nick, time_t delta)
 
E IgnoreDataget_ignore (const char *nick)
 
E int delete_ignore (const char *nick)
 
E int clear_ignores ()
 
E int split_buf (char *buf, char ***argv, int colon_special)
 
E void process (void)
 
E void send_cmd (const char *source, const char *fmt,...) FORMAT(printf
 
E void E void vsend_cmd (const char *source, const char *fmt, va_list args) FORMAT(printf
 
E void E void E void notice_server (char *source, Server *s, char *fmt,...) FORMAT(printf
 
E void E void E void E void notice_user (char *source, User *u, const char *fmt,...) FORMAT(printf
 
E void E void E void E void E void notice_list (char *source, char *dest, char **text)
 
E void notice_lang (char *source, User *dest, int message,...)
 
E void notice_help (char *source, User *dest, int message,...)
 
E Serverfirst_server (int flags)
 
E Servernext_server (int flags)
 
E int is_ulined (char *server)
 
E int is_sync (Server *server)
 
E Servernew_server (Server *uplink, const char *name, const char *desc, uint16 flags, char *suid)
 
E Serverfindserver (Server *s, const char *name)
 
E void do_server (const char *source, char *servername, char *hops, char *descript, char *numeric)
 
E void do_squit (const char *source, int ac, char **av)
 
E void capab_parse (int ac, char **av)
 
E int anope_check_sync (const char *name)
 
E void finish_sync (Server *serv, int sync_links)
 
E void ts6_uid_init (void)
 
E void ts6_uid_increment (unsigned int slot)
 
E char * ts6_uid_retrieve (void)
 
E void get_session_stats (long *nrec, long *memuse)
 
E void get_exception_stats (long *nrec, long *memuse)
 
E int do_session (User *u)
 
E int add_session (char *nick, char *host, char *hostip)
 
E void del_session (const char *host)
 
E void load_exceptions (void)
 
E void save_exceptions (void)
 
E void save_rdb_exceptions (void)
 
E int do_exception (User *u)
 
E void expire_exceptions (void)
 
E Sessionfindsession (const char *host)
 
E Exceptionfind_host_exception (const char *host)
 
E Exceptionfind_hostip_exception (const char *host, const char *hostip)
 
E int exception_add (User *u, const char *mask, const int limit, const char *reason, const char *who, const time_t expires)
 
E int slist_add (SList *slist, void *item)
 
E void slist_clear (SList *slist, int free)
 
E int slist_delete (SList *slist, int index)
 
E int slist_delete_range (SList *slist, char *range, slist_delcheckcb_t cb,...)
 
E int slist_enum (SList *slist, char *range, slist_enumcb_t cb,...)
 
E int slist_full (SList *slist)
 
E int slist_indexof (SList *slist, void *item)
 
E void slist_init (SList *slist)
 
E void slist_pack (SList *slist)
 
E int slist_remove (SList *slist, void *item)
 
E int slist_setcapacity (SList *slist, int16 capacity)
 
E int32 read_buffer_len (void)
 
E int32 write_buffer_len (void)
 
E int sgetc (ano_socket_t s)
 
E char * sgets (char *buf, int len, ano_socket_t s)
 
E char * sgets2 (char *buf, int len, ano_socket_t s)
 
E int sread (ano_socket_t s, char *buf, int len)
 
E int sputs (char *str, ano_socket_t s)
 
E int sockprintf (ano_socket_t s, char *fmt,...)
 
E int conn (const char *host, int port, const char *lhost, int lport)
 
E void disconn (ano_socket_t s)
 
E void delete_user (User *user)
 
E void get_user_stats (long *nusers, long *memuse)
 
E Userfinduser (const char *nick)
 
E Userfirstuser (void)
 
E Usernextuser (void)
 
E Userfind_byuid (const char *uid)
 
E Userfirst_uid (void)
 
E Usernext_uid (void)
 
E Uidnew_uid (const char *nick, char *uid)
 
E Uidfind_uid (const char *nick)
 
E Uidfind_nickuid (const char *uid)
 
E Serverfindserver_uid (Server *s, const char *name)
 
E void update_host (User *user)
 
E void change_user_host (User *user, const char *host)
 
E void change_user_username (User *user, const char *username)
 
E void change_user_realname (User *user, const char *realname)
 
E Userdo_nick (const char *source, char *nick, char *username, char *host, char *server, char *realname, time_t ts, uint32 svid, uint32 ip, char *vhost, char *uid)
 
E void do_umode (const char *source, int ac, char **av)
 
E void do_umode2 (const char *source, int ac, char **av)
 
E void do_quit (const char *source, int ac, char **av)
 
E void do_kill (char *source, char *reason)
 
E int is_oper (User *user)
 
E int is_protected (User *user)
 
E int is_excepted (ChannelInfo *ci, User *user)
 
E int is_excepted_mask (ChannelInfo *ci, char *mask)
 
E int match_usermask (const char *mask, User *user)
 
E int match_usermask_full (const char *mask, User *user, boolean full)
 
E int match_userip (const char *mask, User *user, char *host)
 
E void split_usermask (const char *mask, char **nick, char **user, char **host)
 
E char * create_mask (User *u)
 
E void privmsg (char *source, char *dest, const char *fmt,...)
 
E void notice (char *source, char *dest, const char *fmt,...)
 
E int anope_set_mod_current_buffer (int ac, char **av)
 
E void anope_cmd_211 (const char *fmt,...)
 
E void anope_cmd_219 (char *source, char *who)
 
E void anope_cmd_242 (const char *fmt,...)
 
E void anope_cmd_243 (const char *fmt,...)
 
E void anope_cmd_250 (const char *fmt,...)
 
E void anope_cmd_307 (const char *fmt,...)
 
E void anope_cmd_311 (const char *fmt,...)
 
E void anope_cmd_312 (const char *fmt,...)
 
E void anope_cmd_317 (const char *fmt,...)
 
E void anope_cmd_318 (char *source, char *who)
 
E void anope_cmd_351 (char *source)
 
E void anope_cmd_372 (char *source, char *msg)
 
E void anope_cmd_372_error (char *source)
 
E void anope_cmd_375 (char *source)
 
E void anope_cmd_376 (char *source)
 
E void anope_cmd_391 (char *source, char *timestr)
 
E void anope_cmd_401 (char *source, char *who)
 
E void anope_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
 
E void anope_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
 
E void anope_cmd_vhost_off (User *u)
 
E void anope_cmd_connect (int servernum)
 
E void anope_cmd_bob ()
 
E void anope_cmd_global (char *source, const char *fmt,...)
 
E void anope_cmd_invite (char *source, char *chan, char *nick)
 
E void anope_cmd_join (char *user, char *channel, time_t chantime)
 
E void anope_cmd_kick (char *source, char *chan, char *user, const char *fmt,...)
 
E void anope_cmd_mode (char *source, char *dest, const char *fmt,...)
 
E void anope_cmd_unban (char *name, char *nick)
 
E void anope_cmd_bot_chan_mode (char *nick, char *chan)
 
E void anope_cmd_nick (char *nick, char *name, char *mode)
 
E void anope_cmd_chg_nick (char *oldnick, char *newnick)
 
E void anope_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
 
E void anope_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
 
E void anope_cmd_notice (char *source, char *dest, const char *fmt,...)
 
E void anope_cmd_notice_ops (char *source, char *dest, const char *fmt,...)
 
E void anope_cmd_notice2 (char *source, char *dest, char *msg)
 
E void anope_cmd_serv_notice (char *source, char *dest, char *msg)
 
E void anope_cmd_part (char *nick, char *chan, const char *fmt,...)
 
E void anope_cmd_pong (char *servname, char *who)
 
E void anope_cmd_privmsg (char *source, char *dest, const char *fmt,...)
 
E void anope_cmd_action (char *source, char *dest, const char *fmt,...)
 
E void anope_cmd_privmsg2 (char *source, char *dest, char *msg)
 
E void anope_cmd_serv_privmsg (char *source, char *dest, char *msg)
 
E void anope_cmd_quit (char *source, const char *fmt,...)
 
E void anope_cmd_remove_akill (char *user, char *host)
 
E void anope_cmd_sgline (char *mask, char *reason)
 
E void anope_cmd_sqline (char *mask, char *reason)
 
E void anope_cmd_szline (char *mask, char *reason, char *whom)
 
E void anope_cmd_squit (char *servname, char *message)
 
E void anope_cmd_svshold (char *nick)
 
E void anope_cmd_release_svshold (char *nick)
 
E void anope_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
 
E void anope_cmd_svskill (char *source, char *user, const char *fmt,...)
 
E void anope_cmd_svsmode (User *u, int ac, char **av)
 
E void anope_cmd_svsmode_chan (char *name, char *mode, char *nick)
 
E void anope_cmd_svsnick (char *nick, char *newnick, time_t when)
 
E void anope_cmd_svsnoop (char *server, int set)
 
E void anope_cmd_svso (char *source, char *nick, char *flag)
 
E void anope_cmd_svspart (char *source, char *nick, char *chan)
 
E void anope_cmd_swhois (char *source, char *who, char *mask)
 
E void anope_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
 
E void anope_cmd_unsgline (char *mask)
 
E void anope_cmd_unsqline (char *user)
 
E void anope_cmd_unszline (char *mask)
 
E void anope_cmd_eob ()
 
E void anope_cmd_ctcp (char *source, char *dest, const char *fmt,...)
 
EI int anope_event_482 (char *source, int ac, char **av)
 
EI int anope_event_436 (char *source, int ac, char **av)
 
EI int anope_event_away (char *source, int ac, char **av)
 
EI int anope_event_ping (char *source, int ac, char **av)
 
EI int anope_event_motd (char *source, int ac, char **av)
 
EI int anope_event_join (char *source, int ac, char **av)
 
EI int anope_event_kick (char *source, int ac, char **av)
 
EI int anope_event_kill (char *source, int ac, char **av)
 
EI int anope_event_mode (char *source, int ac, char **av)
 
EI int anope_event_tmode (char *source, int ac, char **av)
 
EI int anope_event_quit (char *source, int ac, char **av)
 
EI int anope_event_squit (char *source, int ac, char **av)
 
EI int anope_event_topic (char *source, int ac, char **av)
 
EI int anope_event_whois (char *source, int ac, char **av)
 
EI int anope_event_part (char *source, int ac, char **av)
 
EI int anope_event_server (char *source, int ac, char **av)
 
EI int anope_event_sid (char *source, int ac, char **av)
 
EI int anope_event_nick (char *source, int ac, char **av)
 
EI int anope_event_bmask (char *source, int ac, char **av)
 
EI int anope_event_gnotice (char *source, int ac, char **av)
 
EI int anope_event_privmsg (char *source, int ac, char **av)
 
EI int anope_event_capab (char *source, int ac, char **av)
 
EI int anope_event_sjoin (char *source, int ac, char **av)
 
EI int anope_event_cs (char *source, int ac, char **av)
 
EI int anope_event_hs (char *source, int ac, char **av)
 
EI int anope_event_ms (char *source, int ac, char **av)
 
EI int anope_event_ns (char *source, int ac, char **av)
 
EI int anope_event_os (char *source, int ac, char **av)
 
EI int anope_event_vs (char *source, int ac, char **av)
 
EI int anope_event_svinfo (char *source, int ac, char **av)
 
EI int anope_event_chghost (char *source, int ac, char **av)
 
EI int anope_event_sethost (char *source, int ac, char **av)
 
EI int anope_event_chgident (char *source, int ac, char **av)
 
EI int anope_event_setident (char *source, int ac, char **av)
 
EI int anope_event_chgname (char *source, int ac, char **av)
 
EI int anope_event_setname (char *source, int ac, char **av)
 
EI int anope_event_svsinfo (char *source, int ac, char **av)
 
EI int anope_event_snick (char *source, int ac, char **av)
 
EI int anope_event_vhost (char *source, int ac, char **av)
 
EI int anope_event_tkl (char *source, int ac, char **av)
 
EI int anope_event_eos (char *source, int ac, char **av)
 
EI int anope_event_eob (char *source, int ac, char **av)
 
EI int anope_event_pass (char *source, int ac, char **av)
 
EI int anope_event_netinfo (char *source, int ac, char **av)
 
EI int anope_event_error (char *source, int ac, char **av)
 
EI int anope_event_netctrl (char *source, int ac, char **av)
 
EI int anope_event_notice (char *source, int ac, char **av)
 
EI int anope_event_snotice (char *source, int ac, char **av)
 
EI int anope_event_sqline (char *source, int ac, char **av)
 
EI int anope_event_smo (char *source, int ac, char **av)
 
EI int anope_event_myid (char *source, int ac, char **av)
 
EI int anope_event_vctrl (char *source, int ac, char **av)
 
EI int anope_event_tctrl (char *source, int ac, char **av)
 
EI int anope_event_snetinfo (char *source, int ac, char **av)
 
EI int anope_event_umode2 (char *source, int ac, char **av)
 
EI int anope_event_globops (char *source, int ac, char **av)
 
EI int anope_event_swhois (char *source, int ac, char **av)
 
EI int anope_event_burst (char *source, int ac, char **av)
 
EI int anope_event_luserslock (char *source, int ac, char **av)
 
EI int anope_event_admin (char *source, int ac, char **av)
 
EI int anope_event_credits (char *source, int ac, char **av)
 
EI int anope_event_rehash (char *source, int ac, char **av)
 
EI int anope_event_sdesc (char *source, int ac, char **av)
 
EI int anope_event_netglobal (char *source, int ac, char **av)
 
EI int anope_event_invite (char *source, int ac, char **av)
 
E int anope_event_null (char *source, int ac, char **av)
 
E void anope_set_umode (User *user, int ac, char **av)
 
E void anope_cmd_svid_umode (char *nick, time_t ts)
 
E void anope_cmd_svid_umode2 (User *u, char *ts)
 
E void anope_cmd_svid_umode3 (User *u, char *ts)
 
E void anope_cmd_nc_change (User *u)
 
E int anope_flood_mode_check (char *value)
 
E int anope_jointhrottle_mode_check (char *value)
 
E void anope_cmd_jupe (char *jserver, char *who, char *reason)
 
E void anope_cmd_global_legacy (char *source, char *fmt)
 
E void wallops (char *source, const char *fmt,...)
 
E int anope_valid_nick (char *nick)
 
E int anope_valid_chan (char *chan)
 
E char * common_get_vident (User *u)
 
E char * common_get_vhost (User *u)
 
E char * send_token (char *token1, char *token2)
 
E char * base64enc (long i)
 
E long base64dec (char *b64)
 
E long base64dects (char *ts)
 
E int b64_encode (char *src, size_t srclength, char *target, size_t targsize)
 
E int b64_decode (char *src, char *target, size_t targsize)
 
E char * encode_ip (unsigned char *ip)
 
E int decode_ip (char *buf)
 
E char * host_resolve (char *host)
 
E void event_message_process (char *eventbuf)
 
E void eventprintf (char *fmt,...)
 
E void event_process_hook (const char *name, int argc, char **argv)
 
E void send_event (const char *name, int argc,...)
 

Variables

E char * uplink
 
E IRCDVarircd
 
E IRCDCAPABircdcap
 
E char * flood_mode_char_set
 
E char * flood_mode_char_remove
 
E int UseTSMODE
 
EI unsigned long umodes [128]
 
E char csmodes [128]
 
E CMMode cmmodes [128]
 
E CBMode cbmodes [128]
 
E CBModeInfocbmodeinfos
 
E CUMode cumodes [128]
 
E char * IRCDModule
 
E IRCDProto ircdproto
 
E BotInfobotlists [256]
 
E int nbots
 
E Channelchanlist [1024]
 
E ChannelInfochanlists [256]
 
E CSModeUtil csmodeutils []
 
E LevelInfo levelinfo []
 
E int levelinfo_maxwidth
 
E char * RemoteServer
 
E int RemotePort
 
E char * RemotePassword
 
E char * RemoteServer2
 
E int RemotePort2
 
E char * RemotePassword2
 
E char * RemoteServer3
 
E int RemotePort3
 
E char * RemotePassword3
 
E char * LocalHost
 
E int LocalPort
 
E char * ServerName
 
E char * ServerDesc
 
E char * ServiceUser
 
E char * ServiceHost
 
E char * HelpChannel
 
E char * LogChannel
 
E char * NetworkName
 
E int NickLen
 
E char * s_NickServ
 
E char * s_ChanServ
 
E char * s_MemoServ
 
E char * s_BotServ
 
E char * s_HelpServ
 
E char * s_OperServ
 
E char * s_GlobalNoticer
 
E char * s_DevNull
 
E char * desc_NickServ
 
E char * desc_ChanServ
 
E char * desc_MemoServ
 
E char * desc_BotServ
 
E char * desc_HelpServ
 
E char * desc_OperServ
 
E char * desc_GlobalNoticer
 
E char * desc_DevNull
 
E char * HostDBName
 
E char * desc_HostServ
 
E char * s_HostServ
 
E char * s_NickServAlias
 
E char * s_ChanServAlias
 
E char * s_MemoServAlias
 
E char * s_BotServAlias
 
E char * s_HelpServAlias
 
E char * s_OperServAlias
 
E char * s_GlobalNoticerAlias
 
E char * s_DevNullAlias
 
E char * s_HostServAlias
 
E char * desc_NickServAlias
 
E char * desc_ChanServAlias
 
E char * desc_MemoServAlias
 
E char * desc_BotServAlias
 
E char * desc_HelpServAlias
 
E char * desc_OperServAlias
 
E char * desc_GlobalNoticerAlias
 
E char * desc_DevNullAlias
 
E char * desc_HostServAlias
 
E char * PIDFilename
 
E char * MOTDFilename
 
E char * NickDBName
 
E char * PreNickDBName
 
E char * ChanDBName
 
E char * BotDBName
 
E char * OperDBName
 
E char * AutokillDBName
 
E char * NewsDBName
 
E int NoBackupOkay
 
E int StrictPasswords
 
E int BadPassLimit
 
E int BadPassTimeout
 
E int UpdateTimeout
 
E int ExpireTimeout
 
E int ReadTimeout
 
E int WarningTimeout
 
E int TimeoutCheck
 
E int KeepLogs
 
E int KeepBackups
 
E int ForceForbidReason
 
E int UsePrivmsg
 
E int UseStrictPrivMsg
 
E int DumpCore
 
E int LogUsers
 
E int NickRegDelay
 
E int UseSVSHOLD
 
E int UseSVS2MODE
 
E int RestrictOperNicks
 
E int UseTokens
 
E int NewsCount
 
E char * Numeric
 
E int UnRestrictSAdmin
 
E int UseTS6
 
E char ** HostSetters
 
E int HostNumber
 
E int UseMail
 
E char * SendMailPath
 
E char * SendFrom
 
E int RestrictMail
 
E int MailDelay
 
E int DontQuoteAddresses
 
E int ForkForMail
 
E int NSDefFlags
 
E int NSDefLanguage
 
E int NSRegDelay
 
E int NSResendDelay
 
E int NSExpire
 
E int NSRExpire
 
E int NSForceEmail
 
E int NSMaxAliases
 
E int NSAccessMax
 
E char * NSEnforcerUser
 
E char * NSEnforcerHost
 
E int NSReleaseTimeout
 
E int NSAllowKillImmed
 
E int NSNoGroupChange
 
E int NSListOpersOnly
 
E int NSListMax
 
E char * NSGuestNickPrefix
 
E int NSSecureAdmins
 
E int NSStrictPrivileges
 
E int NSEmailReg
 
E int NSModeOnID
 
E int NSRestrictGetPass
 
E int NSNickTracking
 
E int NSAddAccessOnReg
 
E int CSDefFlags
 
E int CSMaxReg
 
E int CSExpire
 
E int CSDefBantype
 
E int CSAccessMax
 
E int CSAutokickMax
 
E char * CSAutokickReason
 
E int CSInhabit
 
E int CSListOpersOnly
 
E int CSListMax
 
E int CSRestrictGetPass
 
E int CSOpersOnly
 
E int MSMaxMemos
 
E int MSSendDelay
 
E int MSNotifyAll
 
E int MSMemoReceipt
 
E int BSDefFlags
 
E int BSKeepData
 
E int BSMinUsers
 
E int BSBadWordsMax
 
E int BSSmartJoin
 
E int BSGentleBWReason
 
E int BSCaseSensitive
 
E char * BSFantasyCharacter
 
E int HideStatsO
 
E int GlobalOnCycle
 
E int AnonymousGlobal
 
E char * GlobalOnCycleMessage
 
E char * GlobalOnCycleUP
 
E char ** ServicesRoots
 
E int RootNumber
 
E int LogMaxUsers
 
E int SuperAdmin
 
E int LogBot
 
E int AutokillExpiry
 
E int ChankillExpiry
 
E int SGLineExpiry
 
E int SQLineExpiry
 
E int SZLineExpiry
 
E int AkillOnAdd
 
E int KillonSGline
 
E int KillonSQline
 
E int DisableRaw
 
E int WallOper
 
E int WallBadOS
 
E int WallOSGlobal
 
E int WallOSMode
 
E int WallOSClearmodes
 
E int WallOSKick
 
E int WallOSAkill
 
E int WallOSSGLine
 
E int WallOSSQLine
 
E int WallOSSZLine
 
E int WallOSNoOp
 
E int WallOSJupe
 
E int WallOSRaw
 
E int WallAkillExpire
 
E int WallSGLineExpire
 
E int WallSQLineExpire
 
E int WallSZLineExpire
 
E int WallExceptionExpire
 
E int WallDrop
 
E int WallForbid
 
E int WallGetpass
 
E int WallSetpass
 
E int AddAkiller
 
E char ** ModulesAutoload
 
E int ModulesNumber
 
E char ** ModulesDelayedAutoload
 
E int ModulesDelayedNumber
 
E char ** HostServCoreModules
 
E int HostServCoreNumber
 
E char ** HelpServCoreModules
 
E int HelpServCoreNumber
 
E char ** MemoServCoreModules
 
E int MemoServCoreNumber
 
E char ** BotServCoreModules
 
E int BotServCoreNumber
 
E char ** OperServCoreModules
 
E int OperServCoreNumber
 
E char ** NickServCoreModules
 
E int NickServCoreNumber
 
E char ** ChanServCoreModules
 
E int ChanServCoreNumber
 
E int LimitSessions
 
E int DefSessionLimit
 
E int ExceptionExpiry
 
E int MaxSessionKill
 
E int MaxSessionLimit
 
E int SessionAutoKillExpiry
 
E char * ExceptionDBName
 
E char * SessionLimitDetailsLoc
 
E char * SessionLimitExceeded
 
E char * UlineServers
 
E char ** Ulines
 
E int NumUlines
 
E int DefConLevel
 
E int DefCon [6]
 
E int DefConSessionLimit
 
E char * DefConTimeOut
 
E char * DefConAKILL
 
E char * DefConChanModes
 
E int GlobalOnDefcon
 
E int GlobalOnDefconMore
 
E char * DefconMessage
 
E char * DefConAkillReason
 
E char * DefConOffMessage
 
E long unsigned int UserKey1
 
E long unsigned int UserKey2
 
E long unsigned int UserKey3
 
E char * EncModule
 
E int servernum
 
E char ** langtexts [NUM_LANGS]
 
E char * langnames [NUM_LANGS]
 
E int langlist [NUM_LANGS]
 
E const char version_number []
 
E const char version_number_dotted []
 
E const char version_build []
 
E char * version_protocol
 
E const char version_flags []
 
E char * services_dir
 
E char * log_filename
 
E int debug
 
E int readonly
 
E int logchan
 
E int skeleton
 
E int nofork
 
E int forceload
 
E int nothird
 
E int noexpire
 
E int protocoldebug
 
E int is44
 
E int quitting
 
E int delayed_quit
 
E char * quitmsg
 
E char inbuf [BUFSIZE]
 
E int servsock
 
E int save_data
 
E int got_alarm
 
E time_t start_time
 
E int32 nnews
 
E int32 news_size
 
E NewsItemnews
 
E NickAliasnalists [1024]
 
E NickCorenclists [1024]
 
E NickRequestnrlists [1024]
 
E unsigned int guestnum
 
E SList akills
 
E SList sglines
 
E SList sqlines
 
E SList szlines
 
E SList servadmins
 
E SList servopers
 
E int DefConModesSet
 
E uint32 DefConModesOn
 
E uint32 DefConModesOff
 
E ChannelInfo DefConModesCI
 
E int OSOpersOnly
 
E time_t DefContimer
 
E int allow_ignore
 
E IgnoreDataignore
 
E Serverservlist
 
E Serverme_server
 
E Serverserv_uplink
 
E uint32 uplink_capab
 
E CapabInfo capab_info []
 
E Exceptionexceptions
 
E int16 nexceptions
 
E Sessionsessionlist [1024]
 
E int32 nsessions
 
E int32 total_read
 
E int32 total_written
 
E Useruserlist [1024]
 
E int32 usercnt
 
E int32 opcnt
 
E uint32 maxusercnt
 
E time_t maxusertime
 
E char * TS6SID
 
E char * TS6UPLINK
 

Macro Definition Documentation

#define Anope_Free (   x)    if ((x) != NULL) free(x)
#define E   extern

Definition at line 18 of file extern.h.

#define EI   extern

Definition at line 19 of file extern.h.

#define getstring (   na,
  index 
)    (langtexts[((na)&&((NickAlias*)na)->nc&&!(((NickAlias*)na)->status & NS_VERBOTEN)?((NickAlias*)na)->nc->language:NSDefLanguage)][(index)])
#define getstring2 (   nc,
  index 
)    (langtexts[((nc)?((NickCore*)nc)->language:NSDefLanguage)][(index)])
#define vsnprintf   my_vsnprintf

Definition at line 236 of file extern.h.

#define whosends (   ci)    ((!(ci) || !((ci)->botflags & BS_SYMBIOSIS) || !(ci)->bi || !(ci)->c || (ci)->c->usercount < BSMinUsers) ? s_ChanServ : (ci)->bi->nick)

Typedef Documentation

typedef int(* range_callback_t)(User *u, int num, va_list args)

Definition at line 858 of file extern.h.

Function Documentation

E int add_akill ( User u,
char *  mask,
const char *  by,
const time_t  expires,
const char *  reason 
)
E void add_ban ( Channel chan,
char *  mask 
)
E void add_entropy_userkeys ( void  )

Setup the random numbers

Returns
void

Definition at line 1028 of file misc.c.

References arc4_addrandom(), UserKey1, UserKey2, and UserKey3.

Referenced by init_secondary().

E void add_exception ( Channel chan,
char *  mask 
)
E void add_ignore ( const char *  nick,
time_t  delta 
)

Add a mask/nick to the ignorelits for delta seconds.

Parameters
nickNick or (nick!)user to add to the ignorelist.
deltaSeconds untill new entry is set to expire. 0 for permanent.

Definition at line 33 of file process.c.

References alog(), BUFSIZE, debug, finduser(), user_::host, ignore, ignore_data::mask, ignore_data::next, ignore_data::prev, scalloc(), snprintf(), sstrdup(), stricmp(), and ignore_data::time.

Referenced by do_ignoreuser(), and m_privmsg().

E void add_invite ( Channel chan,
char *  mask 
)
E int add_session ( char *  nick,
char *  host,
char *  hostip 
)
E int add_sgline ( User u,
char *  mask,
const char *  by,
const time_t  expires,
const char *  reason 
)
E int add_sqline ( User u,
char *  mask,
const char *  by,
const time_t  expires,
const char *  reason 
)
E int add_szline ( User u,
char *  mask,
const char *  by,
const time_t  expires,
const char *  reason 
)
E void addHostCore ( char *  nick,
char *  vIdent,
char *  vhost,
char *  creator,
int32  tmp_time 
)
E void alog ( const char *  fmt,
  ... 
)

Referenced by add_ban(), add_exception(), add_ignore(), add_invite(), add_ns_timeout(), addCommand(), addEventHandler(), addEventHook(), addMessage(), alpha_insert_alias(), alpha_insert_chan(), anope_event_capab(), anope_event_chghost(), anope_event_chgident(), anope_event_chgname(), anope_event_encap(), anope_event_error(), anope_event_fjoin(), anope_event_fmode(), anope_event_metadata(), anope_event_newmask(), anope_event_sethost(), anope_event_setident(), anope_event_setname(), anope_event_tburst(), anope_event_topic(), anope_event_uid(), anope_event_vhost(), anope_event_vs(), AnopeFini(), AnopeInit(), backup_databases(), backup_ignoredb(), bahamut_cmd_chghost(), bahamut_set_umode(), buffered_read(), buffered_read_one(), buffered_write(), chan_create(), chan_delete(), chan_has_user_status(), chan_remove_user_status(), chan_set_correct_modes(), chan_set_key(), chan_set_modes(), chan_set_throttle(), chan_set_user_status(), change_core_display(), change_user_host(), change_user_realname(), change_user_username(), charybdis_set_umode(), check_kick(), check_memos(), check_modes(), check_timeouts(), check_topiclock(), clean_ns_timeouts(), clear_ignores(), conn(), cs_findchan(), cs_remove_nick(), db_mysql_init(), db_mysql_load_cs_dbase(), db_mysql_query(), defconParseModeString(), del_ban(), del_exception(), del_invite(), del_session(), delchan(), delcore(), delete_ignore(), delete_server(), delete_user(), delHostCore(), delnick(), display_news(), displayCommand(), displayCommandFromHash(), displayEventHook(), displayEventMessage(), displayEvtMessageFromHash(), displayHookFromHash(), displayMessage(), displayMessageFromHash(), do_access(), do_akick(), do_assign(), do_backtrace(), do_badwords(), do_bot(), do_clear(), do_clearmodes(), do_cmode(), do_confirm(), do_cs_topic(), do_defcon(), do_del(), do_delall(), do_drop(), do_enforce_cmode_R(), do_enforce_restricted(), do_enforce_secureops(), do_forbid(), do_getemail(), do_getkey(), do_getpass(), do_ghost(), do_group(), do_identify(), do_join(), do_kick(), do_kickcmd(), do_kill(), do_levels(), do_logout(), do_news(), do_nick(), do_part(), do_quit(), do_raw(), do_recover(), do_register(), do_release(), do_resend(), do_rsend(), do_run_cmd(), do_saset_autoop(), do_saset_display(), do_saset_email(), do_saset_greet(), do_saset_hide(), do_saset_icq(), do_saset_kill(), do_saset_language(), do_saset_msg(), do_saset_noexpire(), do_saset_password(), do_saset_private(), do_saset_secure(), do_saset_url(), do_sendall(), do_sendpass(), do_server(), do_set(), do_set_autoop(), do_set_bantype(), do_set_desc(), do_set_display(), do_set_email(), do_set_entrymsg(), do_set_founder(), do_set_greet(), do_set_hide(), do_set_icq(), do_set_keeptopic(), do_set_kill(), do_set_language(), do_set_limit(), do_set_mlock(), do_set_msg(), do_set_noexpire(), do_set_notify(), do_set_opnotice(), do_set_password(), do_set_peace(), do_set_private(), do_set_restricted(), do_set_secure(), do_set_securefounder(), do_set_secureops(), do_set_signkick(), do_set_successor(), do_set_topiclock(), do_set_url(), do_set_xop(), do_setall(), do_sjoin(), do_squit(), do_suspend(), do_topic(), do_umode(), do_umode2(), do_unassign(), do_unsuspend(), do_xop(), dreamforge_set_umode(), encryption_module_init(), EnforceQlinedNick(), error(), expire_all(), expire_chans(), expire_nicks(), expire_requests(), find_byuid(), findchan(), findcore(), findnick(), findrequestnick(), findserver(), findserver_uid(), finduser(), finish_sync(), first_uid(), firstchan(), firstuser(), flush_write_buffer(), get_file_version(), get_ignore(), handleModuleOperationQueue(), host_resolve(), hs_do_activate(), hs_do_reject(), hs_do_request(), hsreq_load_db(), hsreq_save_db(), hybrid_set_umode(), init_secondary(), insert_core(), insert_requestnick(), inspircd_cmd_nc_change(), inspircd_cmd_svid_umode(), inspircd_cmd_svid_umode2(), inspircd_set_umode(), join_user_update(), load_config(), load_cs_dbase(), load_ignore_db(), load_lang(), load_ns_dbase(), load_old_ns_dbase(), loadModule(), m_privmsg(), main(), makebot(), makenick(), makerequest(), md5_encrypt(), mEventReload(), mLoadConfig(), mLoadData(), moduleAddCallback(), moduleAddCommand(), moduleAddData(), moduleCallBackPrepForUnload(), moduleCallBackRun(), moduleCopyFile(), ModuleDatabaseBackup(), moduleDataDebug(), moduleDelAllData(), moduleDelCallback(), moduleDelData(), moduleGetConfigDirective(), moduleGetData(), moduleGetLangString(), moduleInsertLanguage(), moduleNoticeLang(), ModuleRunTimeDirCleanUp(), modules_core_init(), modules_delayed_init(), modules_init(), modules_unload_all(), mSaveData(), my_cs_appendtopic(), my_event_addcommand(), my_load_config(), my_memo_lang(), my_nick(), my_save(), myDoSet(), new_open_db_read(), new_open_db_write(), new_server(), new_user(), new_write_db_endofblock(), new_write_db_entry(), next_uid(), nextchan(), nextuser(), old_encrypt(), open_db_write(), operserv(), plexus_set_umode(), process(), protocol_debug(), protocol_module_init(), ptlink_set_umode(), rageircd_set_umode(), ratbox_set_umode(), rdb_direct_query(), rdb_load_dbases(), read_config(), rename_database(), reset_levels(), resetDefCon(), runDefCon(), save_bs_rdb_dbase(), save_cs_rdb_dbase(), save_databases(), save_hs_rdb_dbase(), save_ignore_db(), save_ns_rdb_dbase(), save_ns_req_rdb_dbase(), save_os_rdb_dbase(), save_rdb_exceptions(), save_rdb_news(), send_event(), services_restart(), services_shutdown(), set_flood(), set_group(), set_limit(), set_redirect(), sha1_encrypt(), shadowircd_set_umode(), sighandler(), slist_enum(), solidircd_set_umode(), sstrdup(), test(), ts6_uid_init(), ultiamte2_set_umode(), ultimate3_set_umode(), unloadModule(), unreal_set_umode(), update_host(), viagra_set_umode(), and vsend_cmd().

E void alpha_insert_alias ( NickAlias na)
void alpha_insert_chan ( ChannelInfo ci)
E int anope_check_sync ( const char *  name)

Find if the server is synced with the network

Parameters
sServer struct
nameServer Name
Returns
Not Synced returns -1, Synced returns 1, Error returns 0

Definition at line 335 of file servers.c.

References findserver(), and is_sync().

E void anope_cmd_211 ( const char *  fmt,
  ... 
)

Definition at line 493 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_211, and vsnprintf().

Referenced by m_stats().

E void anope_cmd_219 ( char *  source,
char *  who 
)

Definition at line 452 of file ircd.c.

References ircd_proto_::ircd_cmd_219.

Referenced by m_stats().

E void anope_cmd_242 ( const char *  fmt,
  ... 
)

Definition at line 467 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_242, and vsnprintf().

Referenced by m_stats().

E void anope_cmd_243 ( const char *  fmt,
  ... 
)

Definition at line 480 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_243, and vsnprintf().

Referenced by m_stats().

E void anope_cmd_250 ( const char *  fmt,
  ... 
)

Definition at line 387 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_250, and vsnprintf().

Referenced by m_stats().

E void anope_cmd_307 ( const char *  fmt,
  ... 
)

Definition at line 400 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_307, and vsnprintf().

Referenced by m_whois().

E void anope_cmd_311 ( const char *  fmt,
  ... 
)

Definition at line 413 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_311, and vsnprintf().

Referenced by m_whois().

E void anope_cmd_312 ( const char *  fmt,
  ... 
)

Definition at line 426 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_312, and vsnprintf().

Referenced by m_whois().

E void anope_cmd_317 ( const char *  fmt,
  ... 
)

Definition at line 439 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_317, and vsnprintf().

Referenced by m_whois().

E void anope_cmd_318 ( char *  source,
char *  who 
)

Definition at line 462 of file ircd.c.

References ircd_proto_::ircd_cmd_318.

Referenced by m_whois().

E void anope_cmd_351 ( char *  source)

Definition at line 329 of file ircd.c.

References ircd_proto_::ircd_cmd_351.

Referenced by m_version().

E void anope_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 180 of file ircd.c.

References ircd_proto_::ircd_cmd_372.

Referenced by m_motd().

E void anope_cmd_372_error ( char *  source)

Definition at line 185 of file ircd.c.

References ircd_proto_::ircd_cmd_372_error.

Referenced by m_motd().

E void anope_cmd_375 ( char *  source)

Definition at line 190 of file ircd.c.

References ircd_proto_::ircd_cmd_375.

Referenced by m_motd().

E void anope_cmd_376 ( char *  source)

Definition at line 195 of file ircd.c.

References ircd_proto_::ircd_cmd_376.

Referenced by m_motd().

E void anope_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 382 of file ircd.c.

References ircd_proto_::ircd_cmd_391.

Referenced by m_time().

E void anope_cmd_401 ( char *  source,
char *  who 
)

Definition at line 457 of file ircd.c.

References ircd_proto_::ircd_cmd_401.

Referenced by m_whois().

E void anope_cmd_action ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)

Definition at line 275 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_privmsg, snprintf(), and vsnprintf().

Referenced by do_act().

E void anope_cmd_akill ( char *  user,
char *  host,
char *  who,
time_t  when,
time_t  expires,
char *  reason 
)

Definition at line 156 of file ircd.c.

References ircd_proto_::ircd_cmd_akill.

Referenced by add_akill(), and check_akill().

E void anope_cmd_bob ( )

Definition at line 559 of file ircd.c.

References ircd_proto_::ircd_cmd_bob.

Referenced by init_tertiary().

E void anope_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 324 of file ircd.c.

References ircd_proto_::ircd_cmd_bot_chan_mode.

Referenced by bot_join().

E void anope_cmd_bot_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)

Definition at line 224 of file ircd.c.

References ircd_proto_::ircd_cmd_bot_nick.

Referenced by addClient(), do_bot(), and introduce_user().

E void anope_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 539 of file ircd.c.

References ircd_proto_::ircd_cmd_chg_nick.

Referenced by do_bot().

E void anope_cmd_connect ( int  servernum)

Definition at line 554 of file ircd.c.

References ircd_proto_::ircd_cmd_connect.

Referenced by init_secondary().

E void anope_cmd_ctcp ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)
E void anope_cmd_eob ( )

Definition at line 639 of file ircd.c.

References ircd_proto_::ircd_cmd_eob.

Referenced by init_tertiary().

E void anope_cmd_global ( char *  source,
const char *  fmt,
  ... 
)
E void anope_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 519 of file ircd.c.

References ircd_proto_::ircd_cmd_global_legacy.

Referenced by wallops().

E void anope_cmd_guest_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)

Definition at line 205 of file ircd.c.

References ircd_proto_::ircd_cmd_guest_nick.

Referenced by cancel_user().

E void anope_cmd_invite ( char *  source,
char *  chan,
char *  nick 
)

Definition at line 362 of file ircd.c.

References ircd_proto_::ircd_cmd_invite.

Referenced by do_invite().

E void anope_cmd_join ( char *  user,
char *  channel,
time_t  chantime 
)
E void anope_cmd_jupe ( char *  jserver,
char *  who,
char *  reason 
)

Definition at line 656 of file ircd.c.

References ircd_proto_::ircd_cmd_jupe.

Referenced by do_jupe().

E void anope_cmd_kick ( char *  source,
char *  chan,
char *  user,
const char *  fmt,
  ... 
)
E void anope_cmd_mode ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)
E void anope_cmd_nc_change ( User u)

Definition at line 609 of file ircd.c.

References ircd_proto_::ircd_cmd_nc_change.

Referenced by do_nick().

E void anope_cmd_nick ( char *  nick,
char *  name,
char *  mode 
)

Definition at line 200 of file ircd.c.

References ircd_proto_::ircd_cmd_nick.

Referenced by introduce_user().

E void anope_cmd_notice ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)

Definition at line 257 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_notice, and vsnprintf().

Referenced by m_privmsg().

E void anope_cmd_notice2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 270 of file ircd.c.

References ircd_proto_::ircd_cmd_notice2.

Referenced by notice(), notice_help(), notice_lang(), notice_list(), and notice_user().

E void anope_cmd_notice_ops ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)

Definition at line 244 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_notice_ops, and vsnprintf().

Referenced by bot_join().

E void anope_cmd_part ( char *  nick,
char *  chan,
const char *  fmt,
  ... 
)
E void anope_cmd_pong ( char *  servname,
char *  who 
)

Definition at line 347 of file ircd.c.

References ircd_proto_::ircd_cmd_pong.

Referenced by save_databases().

E void anope_cmd_privmsg ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)
E void anope_cmd_privmsg2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 309 of file ircd.c.

References ircd_proto_::ircd_cmd_privmsg2.

Referenced by notice(), notice_help(), notice_lang(), notice_user(), and privmsg().

E void anope_cmd_quit ( char *  source,
const char *  fmt,
  ... 
)

Definition at line 334 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_quit, and vsnprintf().

Referenced by delClient(), do_bot(), and release().

E void anope_cmd_release_svshold ( char *  nick)

Definition at line 569 of file ircd.c.

References ircd_proto_::ircd_cmd_release_svshold.

Referenced by release().

E void anope_cmd_remove_akill ( char *  user,
char *  host 
)

Definition at line 140 of file ircd.c.

References ircd_proto_::ircd_cmd_remove_akill.

Referenced by free_akill_entry(), and load_old_akill().

E void anope_cmd_serv_notice ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 314 of file ircd.c.

References ircd_proto_::ircd_cmd_serv_notice.

Referenced by notice_server().

E void anope_cmd_serv_privmsg ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 319 of file ircd.c.

References ircd_proto_::ircd_cmd_serv_privmsg.

Referenced by notice_server().

E void anope_cmd_sgline ( char *  mask,
char *  reason 
)

Definition at line 589 of file ircd.c.

References ircd_proto_::ircd_cmd_sgline.

Referenced by add_sgline(), and check_sgline().

E void anope_cmd_sqline ( char *  mask,
char *  reason 
)

Definition at line 524 of file ircd.c.

References ircd_proto_::ircd_cmd_sqline.

Referenced by do_bot(), do_forbid(), and sqline().

E void anope_cmd_squit ( char *  servname,
char *  message 
)

Definition at line 529 of file ircd.c.

References ircd_proto_::ircd_cmd_squit.

Referenced by do_squit(), main(), services_restart(), and services_shutdown().

E void anope_cmd_svid_umode ( char *  nick,
time_t  ts 
)

Definition at line 604 of file ircd.c.

References ircd_proto_::ircd_cmd_svid_umode.

Referenced by do_nick().

E void anope_cmd_svid_umode2 ( User u,
char *  ts 
)

Definition at line 614 of file ircd.c.

References ircd_proto_::ircd_cmd_svid_umode2.

Referenced by do_nick().

E void anope_cmd_svid_umode3 ( User u,
char *  ts 
)

Definition at line 619 of file ircd.c.

References ircd_proto_::ircd_cmd_svid_umode3.

Referenced by do_nick().

E void anope_cmd_svshold ( char *  nick)

Definition at line 564 of file ircd.c.

References ircd_proto_::ircd_cmd_svshold.

Referenced by cancel_user().

E void anope_cmd_svsjoin ( char *  source,
char *  nick,
char *  chan,
char *  param 
)

Definition at line 624 of file ircd.c.

References ircd_proto_::ircd_cmd_svsjoin.

E void anope_cmd_svskill ( char *  source,
char *  user,
const char *  fmt,
  ... 
)

Definition at line 162 of file ircd.c.

References BUFSIZE, ircd_proto_::ircd_cmd_svskill, and vsnprintf().

Referenced by cancel_user(), check_sgline(), and kill_user().

E void anope_cmd_svsmode ( User u,
int  ac,
char **  av 
)

Definition at line 175 of file ircd.c.

References ircd_proto_::ircd_cmd_svsmode.

Referenced by common_svsmode().

E void anope_cmd_svsmode_chan ( char *  name,
char *  mode,
char *  nick 
)

Definition at line 599 of file ircd.c.

References ircd_proto_::ircd_cmd_svsmode_chan.

Referenced by do_clear(), and do_clearmodes().

E void anope_cmd_svsnick ( char *  nick,
char *  newnick,
time_t  when 
)

Definition at line 544 of file ircd.c.

References ircd_proto_::ircd_cmd_svsnick.

Referenced by collide(), and do_svsnick().

E void anope_cmd_svsnoop ( char *  server,
int  set 
)

Definition at line 135 of file ircd.c.

References ircd_proto_::ircd_cmd_svsnoop.

Referenced by do_noop().

E void anope_cmd_svso ( char *  source,
char *  nick,
char *  flag 
)

Definition at line 534 of file ircd.c.

References ircd_proto_::ircd_cmd_svso.

Referenced by do_operoline().

E void anope_cmd_svspart ( char *  source,
char *  nick,
char *  chan 
)

Definition at line 629 of file ircd.c.

References ircd_proto_::ircd_cmd_svspart.

E void anope_cmd_swhois ( char *  source,
char *  who,
char *  mask 
)

Definition at line 634 of file ircd.c.

References ircd_proto_::ircd_cmd_swhois.

E void anope_cmd_szline ( char *  mask,
char *  reason,
char *  whom 
)

Definition at line 584 of file ircd.c.

References ircd_proto_::ircd_cmd_szline.

Referenced by add_szline(), and check_szline().

E void anope_cmd_topic ( char *  whosets,
char *  chan,
char *  whosetit,
char *  topic,
time_t  when 
)

Definition at line 145 of file ircd.c.

References ircd_proto_::ircd_cmd_topic.

Referenced by check_topiclock(), do_cs_topic(), my_cs_appendtopic(), and restore_topic().

E void anope_cmd_unban ( char *  name,
char *  nick 
)

Definition at line 594 of file ircd.c.

References ircd_proto_::ircd_cmd_unban.

E void anope_cmd_unsgline ( char *  mask)

Definition at line 574 of file ircd.c.

References ircd_proto_::ircd_cmd_unsgline.

Referenced by free_sgline_entry().

E void anope_cmd_unsqline ( char *  user)

Definition at line 357 of file ircd.c.

References ircd_proto_::ircd_cmd_unsqline.

Referenced by do_bot(), do_drop(), and free_sqline_entry().

E void anope_cmd_unszline ( char *  mask)

Definition at line 579 of file ircd.c.

References ircd_proto_::ircd_cmd_unszline.

Referenced by free_szline_entry().

E void anope_cmd_vhost_off ( User u)

Definition at line 151 of file ircd.c.

References ircd_proto_::ircd_cmd_vhost_off.

Referenced by do_off().

E void anope_cmd_vhost_on ( char *  nick,
char *  vIdent,
char *  vhost 
)

Definition at line 549 of file ircd.c.

References ircd_proto_::ircd_cmd_vhost_on.

Referenced by do_on(), and do_on_id().

EI int anope_event_436 ( char *  source,
int  ac,
char **  av 
)

Definition at line 626 of file bahamut.c.

References m_nickcoll(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_482 ( char *  source,
int  ac,
char **  av 
)

Definition at line 1262 of file rageircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_admin ( char *  source,
int  ac,
char **  av 
)

Definition at line 1488 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_away ( char *  source,
int  ac,
char **  av 
)

Definition at line 1291 of file bahamut.c.

References find_byuid(), m_away(), MOD_CONT, user_::nick, and UseTS6.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_bmask ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_burst ( char *  source,
int  ac,
char **  av 
)

Definition at line 1455 of file bahamut.c.

EI int anope_event_capab ( char *  source,
int  ac,
char **  av 
)

Definition at line 575 of file bahamut.c.

References add_ban(), add_exception(), add_invite(), cmmode_::addmask, alog(), anope_cmd_global(), ircdvars_::botchanumode, ircdvars_::botserv_bot_mode, ircdvars_::botservaliasmode, ircdvars_::botservmode, capab_parse(), CBM_MINUS_NO_ARG, CBM_NO_MLOCK, CBM_NO_USER_MLOCK, chan_set_throttle(), ircdvars_::chanservaliasmode, ircdvars_::chanservmode, check_valid_op(), CMODE_A, CMODE_B, CMODE_C, CMODE_c, CMODE_f, CMODE_F, CMODE_g, CMODE_G, CMODE_j, CMODE_J, CMODE_K, CMODE_L, CMODE_N, CMODE_O, CMODE_P, CMODE_Q, CMODE_S, CMODE_T, CMODE_u, CMODE_z, cs_get_flood(), cs_get_redirect(), cs_get_throttle(), cs_get_unkwn(), cs_set_flood(), cs_set_redirect(), cs_set_throttle(), cs_set_unkwn(), cbmodeinfo_::csgetvalue, cbmode_::cssetvalue, CUF_PROTECT_BOTSERV, CUS_HALFOP, CUS_OWNER, CUS_PROTECT, debug, DefConChanModes, DefConLevel, defconParseModeString(), del_ban(), del_exception(), del_invite(), cmmode_::delmask, ircdvars_::devnullmode, ircdvars_::devnullvaliasmode, do_nothing(), ircdvars_::except, find_cbinfo(), cbmode_::flag, cbmode_::flags, cbmodeinfo_::flags, cumode_::flags, flood_mode_set, flood_mode_unset, ircdvars_::fmode, get_flood(), get_mode_from_char(), get_new_statusmode(), get_redirect(), get_throttle(), get_unkwn(), cbmodeinfo_::getvalue, ircdvars_::globalaliasmode, ircdvars_::globalmode, ircdvars_::halfop, has_allowinvite, has_auditorium, has_banexceptionmod, has_blockcaps, has_blockcolor, has_censor, has_chanfilter, has_chanprotectmod, has_chghostmod, has_chgidentmod, has_cloaking, has_globopsmod, has_halfop, has_hidechansmod, has_inviteexceptionmod, has_joinfloodmod, has_kicknorejoin, has_knock, has_messagefloodmod, has_nickflood, has_noctcp, has_nokicks, has_nonicks, has_nonotice, has_operchans, has_permchannels, has_redirectmod, has_servicesmod, has_servprotectmod, has_sslmodes, has_stripcolor, has_svsholdmod, ircdvars_::helpservaliasmode, ircdvars_::helpservmode, ircdvars_::hostservaliasmode, ircdvars_::hostservmode, init_tertiary(), ircdvars_::invitemode, ircd, cumode_::is_valid, ircdvars_::jmode, ircdvars_::Lmode, ircdvars_::memoservaliasmode, ircdvars_::memoservmode, MOD_CONT, MOD_STOP, cbmodeinfo_::mode, myCbmodeinfos, myCsmodes, myStrGetToken(), ircdvars_::nickservaliasmode, ircdvars_::nickservmode, ircdvars_::noknock, ircdvars_::operservaliasmode, ircdvars_::operservmode, ircdvars_::owner, 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(), ircdvars_::protect, quitmsg, quitting, s_OperServ, scalloc(), send_cmd(), set_flood(), set_redirect(), set_unkwn(), cbmode_::setvalue, snprintf(), split_buf(), srealloc(), cumode_::status, ircdvars_::svshold, and TS6SID.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_chghost ( char *  source,
int  ac,
char **  av 
)

Definition at line 1470 of file inspircd11.c.

References alog(), change_user_host(), debug, find_byuid(), finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_chgident ( char *  source,
int  ac,
char **  av 
)

Definition at line 1399 of file inspircd11.c.

References alog(), change_user_username(), debug, find_byuid(), finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_chgname ( char *  source,
int  ac,
char **  av 
)

Definition at line 1361 of file inspircd11.c.

References alog(), change_user_realname(), debug, find_byuid(), finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_credits ( char *  source,
int  ac,
char **  av 
)

Definition at line 1483 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_cs ( char *  source,
int  ac,
char **  av 
)

Definition at line 618 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_ChanServ.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_eob ( char *  source,
int  ac,
char **  av 
)

Definition at line 889 of file hybrid.c.

EI int anope_event_eos ( char *  source,
int  ac,
char **  av 
)

Definition at line 1154 of file shadowircd.c.

References findserver(), findserver_uid(), finish_sync(), MOD_CONT, serv_uplink, and servlist.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_error ( char *  source,
int  ac,
char **  av 
)

Definition at line 1403 of file bahamut.c.

References alog(), debug, and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_globops ( char *  source,
int  ac,
char **  av 
)

Definition at line 1498 of file rageircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_gnotice ( char *  source,
int  ac,
char **  av 
)

Definition at line 1424 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_hs ( char *  source,
int  ac,
char **  av 
)

Definition at line 609 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_HostServ.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_invite ( char *  source,
int  ac,
char **  av 
)

Definition at line 1758 of file charybdis.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_join ( char *  source,
int  ac,
char **  av 
)

Definition at line 1028 of file bahamut.c.

References do_join(), do_sjoin(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_kick ( char *  source,
int  ac,
char **  av 
)

Definition at line 1019 of file bahamut.c.

References do_kick(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_kill ( char *  source,
int  ac,
char **  av 
)

Definition at line 1009 of file bahamut.c.

References find_byuid(), find_nickuid(), m_kill(), MOD_CONT, uid_::nick, user_::nick, and UseTS6.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_luserslock ( char *  source,
int  ac,
char **  av 
)

Definition at line 1473 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_mode ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_motd ( char *  source,
int  ac,
char **  av 
)

Definition at line 1037 of file bahamut.c.

References m_motd(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_ms ( char *  source,
int  ac,
char **  av 
)

Definition at line 600 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_MemoServ.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_myid ( char *  source,
int  ac,
char **  av 
)

Definition at line 1417 of file rageircd.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_netctrl ( char *  source,
int  ac,
char **  av 
)

Definition at line 1538 of file ultimate3.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_netglobal ( char *  source,
int  ac,
char **  av 
)

Definition at line 1653 of file ultimate3.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_netinfo ( char *  source,
int  ac,
char **  av 
)

Definition at line 1483 of file ultimate2.c.

References MOD_CONT, and unreal_cmd_netinfo().

Referenced by moduleAddIRCDMsgs().

EI int anope_event_nick ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_notice ( char *  source,
int  ac,
char **  av 
)

Definition at line 1413 of file bahamut.c.

References hybrid_event_notice(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_ns ( char *  source,
int  ac,
char **  av 
)

Definition at line 591 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_NickServ.

Referenced by moduleAddIRCDMsgs().

E int anope_event_null ( char *  source,
int  ac,
char **  av 
)

Definition at line 441 of file messages.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_os ( char *  source,
int  ac,
char **  av 
)

Definition at line 582 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_OperServ.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_part ( char *  source,
int  ac,
char **  av 
)

Definition at line 954 of file bahamut.c.

References do_part(), find_byuid(), MOD_CONT, user_::nick, and UseTS6.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_pass ( char *  source,
int  ac,
char **  av 
)

Definition at line 1429 of file bahamut.c.

References MOD_CONT, sstrdup(), TS6UPLINK, and UseTS6.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_ping ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_privmsg ( char *  source,
int  ac,
char **  av 
)

Definition at line 932 of file bahamut.c.

References find_byuid(), find_nickuid(), m_privmsg(), MOD_CONT, uid_::nick, user_::nick, and UseTS6.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_quit ( char *  source,
int  ac,
char **  av 
)

Definition at line 986 of file bahamut.c.

References do_quit(), find_byuid(), MOD_CONT, user_::nick, and UseTS6.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_rehash ( char *  source,
int  ac,
char **  av 
)

Definition at line 1478 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_sdesc ( char *  source,
int  ac,
char **  av 
)

Definition at line 1735 of file unreal32.c.

References server_::desc, findserver(), MOD_CONT, and servlist.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_server ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_sethost ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_setident ( char *  source,
int  ac,
char **  av 
)

Definition at line 1380 of file inspircd11.c.

References alog(), change_user_username(), debug, find_byuid(), finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_setname ( char *  source,
int  ac,
char **  av 
)

Definition at line 1342 of file inspircd11.c.

References alog(), change_user_realname(), debug, find_byuid(), finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_sid ( char *  source,
int  ac,
char **  av 
)

Definition at line 1218 of file charybdis.c.

References do_server(), findserver_uid(), MOD_CONT, server_::name, and servlist.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_sjoin ( char *  source,
int  ac,
char **  av 
)

Definition at line 532 of file bahamut.c.

References do_sjoin(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_smo ( char *  source,
int  ac,
char **  av 
)

Definition at line 1677 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_snetinfo ( char *  source,
int  ac,
char **  av 
)

Definition at line 1488 of file ultimate2.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_snick ( char *  source,
int  ac,
char **  av 
)

Definition at line 479 of file rageircd.c.

References anope_set_umode(), do_nick(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_snotice ( char *  source,
int  ac,
char **  av 
)

Definition at line 1537 of file viagra.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_sqline ( char *  source,
int  ac,
char **  av 
)

Definition at line 1418 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_squit ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_svinfo ( char *  source,
int  ac,
char **  av 
)

Definition at line 948 of file bahamut.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_svsinfo ( char *  source,
int  ac,
char **  av 
)

Definition at line 651 of file ptlink.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_swhois ( char *  source,
int  ac,
char **  av 
)

Definition at line 1715 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_tctrl ( char *  source,
int  ac,
char **  av 
)

Definition at line 655 of file viagra.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_tkl ( char *  source,
int  ac,
char **  av 
)

Definition at line 1168 of file unreal32.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_tmode ( char *  source,
int  ac,
char **  av 
)

Definition at line 1570 of file charybdis.c.

References do_cmode(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_topic ( char *  source,
int  ac,
char **  av 
)
EI int anope_event_umode2 ( char *  source,
int  ac,
char **  av 
)

Definition at line 1271 of file unreal32.c.

References do_umode2(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_vctrl ( char *  source,
int  ac,
char **  av 
)

Definition at line 1478 of file ultimate2.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_vhost ( char *  source,
int  ac,
char **  av 
)

Definition at line 444 of file rageircd.c.

References alog(), change_user_host(), debug, finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_vs ( char *  source,
int  ac,
char **  av 
)

Definition at line 713 of file solidircd.c.

References alog(), change_user_host(), debug, finduser(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

EI int anope_event_whois ( char *  source,
int  ac,
char **  av 
)

Definition at line 962 of file bahamut.c.

References find_nickuid(), m_whois(), MOD_CONT, uid_::nick, and UseTS6.

Referenced by moduleAddIRCDMsgs().

E int anope_flood_mode_check ( char *  value)

Definition at line 644 of file ircd.c.

References ircd_proto_::ircd_flood_mode_check.

Referenced by cs_set_flood().

E int anope_get_invis_mode ( )

Definition at line 1211 of file ircd.c.

References ircd_modes_::user_invis.

Referenced by do_userlist().

E int anope_get_invite_mode ( )

Definition at line 1221 of file ircd.c.

References ircd_modes_::chan_invite.

Referenced by bot_join(), defconParseModeString(), and do_set_mlock().

E int anope_get_key_mode ( )

Definition at line 1236 of file ircd.c.

References ircd_modes_::chan_key.

Referenced by cs_set_key().

E int anope_get_limit_mode ( )

Definition at line 1241 of file ircd.c.

References ircd_modes_::chan_limit.

Referenced by cs_set_limit(), defconParseModeString(), and do_set_mlock().

E int anope_get_oper_mode ( )

Definition at line 1216 of file ircd.c.

References ircd_modes_::user_oper.

Referenced by is_oper().

E int anope_get_permchan_mode ( )

Definition at line 1246 of file ircd.c.

References ircd_modes_::chan_perm.

Referenced by chan_deluser().

E int anope_get_private_mode ( )

Definition at line 1231 of file ircd.c.

References ircd_modes_::chan_private.

Referenced by do_chanlist().

E int anope_get_secret_mode ( )

Definition at line 1226 of file ircd.c.

References ircd_modes_::chan_secret.

Referenced by do_chanlist(), and do_info().

E int anope_jointhrottle_mode_check ( char *  value)

Definition at line 649 of file ircd.c.

References ircd_proto_::ircd_jointhrottle_mode_check, and ircdvars_::jmode.

Referenced by cs_set_throttle().

E int anope_set_mod_current_buffer ( int  ac,
char **  av 
)

Definition at line 120 of file ircd.c.

References ircd_proto_::ircd_set_mod_current_buffer.

Referenced by process().

E void anope_set_umode ( User user,
int  ac,
char **  av 
)
E int anope_valid_chan ( char *  chan)

Definition at line 666 of file ircd.c.

References ircd_proto_::ircd_valid_chan.

Referenced by do_forbid(), and do_register().

E int anope_valid_nick ( char *  nick)

Definition at line 661 of file ircd.c.

References ircd_proto_::ircd_valid_nick.

Referenced by do_bot(), do_forbid(), do_group(), and do_register().

E int b64_decode ( char *  src,
char *  target,
size_t  targsize 
)

Definition at line 165 of file base64.c.

References Base64, and Pad64.

Referenced by decode_ip().

E int b64_encode ( char *  src,
size_t  srclength,
char *  target,
size_t  targsize 
)

Definition at line 106 of file base64.c.

References Base64, and Pad64.

Referenced by encode_ip().

E void bad_password ( User u)

Note a bad password attempt for the given user. If they've used up their limit, toss them off.

Parameters
uthe User to check
Returns
void

Definition at line 24 of file actions.c.

References BadPassLimit, BadPassTimeout, user_::invalid_pw_count, user_::invalid_pw_time, kill_user(), and user_::nick.

Referenced by do_ghost(), do_group(), do_identify(), do_recover(), and do_release().

E long base64dec ( char *  b64)

Definition at line 30 of file base64.c.

References base64_to_int().

Referenced by base64dects().

E long base64dects ( char *  ts)

Definition at line 394 of file base64.c.

References Anope_Free, base64dec(), and myStrGetToken().

Referenced by do_sjoin(), and do_topic().

E char* base64enc ( long  i)

Definition at line 23 of file base64.c.

References int_to_base64().

Referenced by unreal_cmd_join().

E void binary_to_hex ( unsigned char *  bin,
char *  hex,
int  length 
)

Simple function to convert binary data to hex. Taken from hybrid-ircd ( http://ircd-hybrid.com/ )

Definition at line 67 of file misc.c.

Referenced by md5_encrypt(), and sha1_encrypt().

E void bot_join ( ChannelInfo ci)
E void bot_raw_ban ( User requester,
ChannelInfo ci,
char *  nick,
char *  reason 
)
E void bot_raw_kick ( User requester,
ChannelInfo ci,
char *  nick,
char *  reason 
)
E void bot_raw_mode ( User requester,
ChannelInfo ci,
char *  mode,
char *  nick 
)
E void bot_rejoin_all ( BotInfo bi)

Definition at line 814 of file botserv.c.

References chaninfo_::bi, bot_join(), BSMinUsers, chaninfo_::c, chanlists, chaninfo_::next, and channel_::usercount.

Referenced by do_bot(), and m_kill().

E void botchanmsgs ( User u,
ChannelInfo ci,
char *  buf 
)
E void botmsgs ( User u,
BotInfo bi,
char *  buf 
)

Definition at line 107 of file botserv.c.

References anope_cmd_ctcp(), botinfo_::nick, user_::nick, and stricmp().

Referenced by m_privmsg().

E void botserv ( User u,
char *  buf 
)

Definition at line 82 of file botserv.c.

References anope_cmd_ctcp(), BOTSERV, mod_run_cmd(), user_::nick, notice_lang(), s_BotServ, skeleton, and stricmp().

Referenced by m_privmsg().

E void bs_init ( void  )

Definition at line 71 of file botserv.c.

References moduleAddBotServCmds(), and s_BotServ.

Referenced by init_secondary().

E char** buildStringList ( char *  src,
int *  number 
)

Build a string list from a given source string. This is usually used for parsing out values from the config file, but could be used for other things. NOTE: this function uses strtok(), be aware it will break any buffer you think you have in there ;)

Definition at line 1211 of file misc.c.

References srealloc(), and sstrdup().

Referenced by read_config().

E void cancel_user ( User u)
E void capab_parse ( int  ac,
char **  av 
)

Handle parsing the CAPAB/PROTOCTL messages

Parameters
acNumber of arguments in av
avAgruments
Returns
void

Definition at line 451 of file servers.c.

References ircdvars_::chanmodes, capabinfo_::flag, ircd, myStrGetToken(), myStrGetTokenRemainder(), ircdvars_::nickchars, ircdvars_::nickip, sstrdup(), stricmp(), capabinfo_::token, and uplink_capab.

Referenced by anope_event_capab().

E void chan_adduser2 ( User user,
Channel c 
)
E Channel* chan_create ( char *  chan,
time_t  ts 
)
E void chan_delete ( Channel c)
E void chan_deluser ( User user,
Channel c 
)
E char* chan_get_modes ( Channel chan,
int  complete,
int  plus 
)
E int chan_get_user_status ( Channel chan,
User user 
)

Definition at line 109 of file channels.c.

References user_::chans, and user_::u_chanlist::next.

Referenced by botchanmsgs(), chan_set_correct_modes(), and chan_set_modes().

E int chan_has_user_status ( Channel chan,
User user,
int16  status 
)

Definition at line 124 of file channels.c.

References alog(), user_::chans, debug, and user_::u_chanlist::next.

Referenced by do_clear(), do_clearmodes(), and do_register().

E void chan_remove_user_status ( Channel chan,
User user,
int16  status 
)
E void chan_set_correct_modes ( User user,
Channel c,
int  give_modes 
)

Set the correct modes, or remove the ones granted without permission, for the specified user on ths specified channel. This doesn't give modes to ignored users, but does remove them if needed.

Parameters
userThe user to give/remove modes to/from
cThe channel to give/remove modes on
give_modesSet to 1 to give modes, 0 to not give modes
Returns
void

Definition at line 1436 of file channels.c.

References ircdvars_::admin, ircdvars_::adminset, alog(), anope_cmd_mode(), BUFSIZE, CA_AUTODEOP, CA_AUTOHALFOP, CA_AUTOOP, CA_AUTOPROTECT, CA_AUTOVOICE, CA_HALFOPME, CA_OPDEOPME, CA_PROTECTME, chan_get_user_status(), chan_remove_user_status(), chan_set_user_status(), check_access(), channel_::ci, CI_SECUREOPS, CI_VERBOTEN, CUS_DEOPPED, CUS_HALFOP, CUS_OP, CUS_OWNER, CUS_PROTECT, CUS_VOICE, debug, nickcore_::flags, chaninfo_::flags, get_ignore(), GET_USER, ircdvars_::halfop, ircd, is_founder(), is_sync(), is_ulined(), user_::na, server_::name, channel_::name, nickalias_::nc, NI_AUTOOP, user_::nick, ircdvars_::owner, ircdvars_::ownerset, ircdvars_::protect, user_::server, stripModePrefix(), channel_::usercount, and whosends.

Referenced by chan_set_modes(), do_enforce_secureops(), do_join(), do_setmodes(), and do_sjoin().

E void chan_set_key ( Channel chan,
char *  value 
)

Definition at line 1998 of file channels.c.

References alog(), debug, channel_::key, channel_::name, and sstrdup().

E void chan_set_modes ( const char *  source,
Channel chan,
int  ac,
char **  av,
int  check 
)
E void chan_set_throttle ( Channel chan,
char *  value 
)

Definition at line 1985 of file channels.c.

References alog(), debug, channel_::name, sstrdup(), and channel_::throttle.

Referenced by anope_event_capab().

E void chan_set_user_status ( Channel chan,
User user,
int16  status 
)
E void change_core_display ( NickCore nc,
char *  newdisplay 
)
E void change_user_host ( User user,
const char *  host 
)
E void change_user_realname ( User user,
const char *  realname 
)
E void change_user_username ( User user,
const char *  username 
)
E void chanserv ( User u,
char *  buf 
)

Definition at line 389 of file chanserv.c.

References anope_cmd_ctcp(), CHANSERV, mod_run_cmd(), user_::nick, notice_lang(), s_ChanServ, skeleton, and stricmp().

Referenced by m_privmsg().

E int check_access ( User user,
ChannelInfo ci,
int  what 
)
E int check_akill ( char *  nick,
const char *  username,
const char *  host,
const char *  vhost,
const char *  ip 
)
E int check_chan_sqline ( const char *  chan)

Definition at line 1296 of file operserv.c.

References slist_::count, slist_::list, sxline_::mask, match_wild_nocase(), sxline_::reason, and sqline().

Referenced by do_sjoin().

E int check_kick ( User user,
char *  chan,
time_t  chants 
)
E void check_memos ( User u)

check_memos: See if the given user has any unread memos, and send a NOTICE to that user if so (and if the appropriate flag is set).

Parameters
uUser Struct
Returns
void

Definition at line 86 of file memoserv.c.

References alog(), debug, memo_::flags, nickcore_::flags, MemoInfo::memocount, MemoInfo::memomax, MemoInfo::memos, nickcore_::memos, MF_UNREAD, user_::na, nickalias_::nc, NI_MEMO_SIGNON, nick_recognized(), notice_lang(), memo_::number, and s_MemoServ.

Referenced by anope_event_encap(), anope_event_metadata(), do_group(), do_identify(), do_nick(), do_nickupdate(), and m_away().

E void check_modes ( Channel c)
E int check_sgline ( char *  nick,
const char *  realname 
)
E int check_should_halfop ( User user,
char *  chan 
)
E int check_should_op ( User user,
char *  chan 
)
E int check_should_owner ( User user,
char *  chan 
)
E int check_should_protect ( User user,
char *  chan 
)
E int check_should_voice ( User user,
char *  chan 
)
E int check_sqline ( char *  nick,
int  nick_change 
)
E int check_szline ( char *  nick,
char *  ip 
)
E int check_topiclock ( Channel c,
time_t  topic_time 
)
E int check_valid_admin ( User user,
Channel chan,
int  servermode 
)
E int check_valid_op ( User user,
Channel chan,
int  servermode 
)
E int checkDefCon ( int  level)

Returns 1 if the passed level is part of the CURRENT defcon, else 0 is returned

Definition at line 1608 of file operserv.c.

References DefCon, and DefConLevel.

Referenced by add_session(), check_akill(), defcon_sendlvls(), do_group(), do_nick(), do_register(), do_run_cmd(), do_sendall(), do_set_mlock(), do_staff(), memo_send_from(), req_send_memos(), rsend_notify(), and runDefCon().

E uint32 cidr_to_netmask ( uint16  cidr)

Turn a cidr value into a netmask

Parameters
cidrCIDR value
Returns
Netmask value

Definition at line 1501 of file misc.c.

Referenced by str_is_cidr().

E void clean_ns_timeouts ( NickAlias na)
E void CleanAccess ( ChannelInfo ci)

Reorder the access list to get rid of unused entries

Parameters
ciThe channel to reorder the access of

Definition at line 2755 of file chanserv.c.

References chaninfo_::access, chaninfo_::accesscount, ChanAccess::in_use, ChanAccess::last_seen, ChanAccess::level, ChanAccess::nc, and srealloc().

Referenced by cs_remove_nick(), do_access(), do_set_xop(), and do_xop().

E int clear_ignores ( )

Clear the ignorelist.

Returns
The number of entries deleted.

Definition at line 241 of file process.c.

References alog(), debug, ignore_data::mask, and ignore_data::next.

Referenced by do_ignoreuser().

E void close_log ( void  )

Definition at line 109 of file log.c.

References logfile.

Referenced by checkday(), do_set(), init_secondary(), main(), and services_restart().

E void collide ( NickAlias na,
int  from_timeout 
)