bahamut.c File Reference

#include "services.h"
#include "pseudo.h"
#include "bahamut.h"

Go to the source code of this file.

Functions

int anope_event_436 (char *source, int ac, char **av)
int anope_event_admin (char *source, int ac, char **av)
int anope_event_away (char *source, int ac, char **av)
int anope_event_burst (char *source, int ac, char **av)
int anope_event_capab (char *source, int ac, char **av)
int anope_event_credits (char *source, int ac, char **av)
int anope_event_cs (char *source, int ac, char **av)
int anope_event_error (char *source, int ac, char **av)
int anope_event_gnotice (char *source, int ac, char **av)
int anope_event_hs (char *source, int ac, char **av)
int anope_event_join (char *source, int ac, char **av)
int anope_event_kick (char *source, int ac, char **av)
int anope_event_kill (char *source, int ac, char **av)
int anope_event_luserslock (char *source, int ac, char **av)
int anope_event_mode (char *source, int ac, char **av)
int anope_event_motd (char *source, int ac, char **av)
int anope_event_ms (char *source, int ac, char **av)
int anope_event_nick (char *source, int ac, char **av)
int anope_event_notice (char *source, int ac, char **av)
int anope_event_ns (char *source, int ac, char **av)
int anope_event_os (char *source, int ac, char **av)
int anope_event_part (char *source, int ac, char **av)
int anope_event_pass (char *source, int ac, char **av)
int anope_event_ping (char *source, int ac, char **av)
int anope_event_privmsg (char *source, int ac, char **av)
int anope_event_quit (char *source, int ac, char **av)
int anope_event_rehash (char *source, int ac, char **av)
int anope_event_server (char *source, int ac, char **av)
int anope_event_sjoin (char *source, int ac, char **av)
int anope_event_sqline (char *source, int ac, char **av)
int anope_event_squit (char *source, int ac, char **av)
int anope_event_svinfo (char *source, int ac, char **av)
int anope_event_topic (char *source, int ac, char **av)
int anope_event_whois (char *source, int ac, char **av)
int AnopeInit (int argc, char **argv)
void bahamut_cmd_211 (char *buf)
void bahamut_cmd_219 (char *source, char *letter)
void bahamut_cmd_242 (char *buf)
void bahamut_cmd_243 (char *buf)
void bahamut_cmd_250 (char *buf)
void bahamut_cmd_307 (char *buf)
void bahamut_cmd_311 (char *buf)
void bahamut_cmd_312 (char *buf)
void bahamut_cmd_317 (char *buf)
void bahamut_cmd_318 (char *source, char *who)
void bahamut_cmd_351 (char *source)
void bahamut_cmd_372 (char *source, char *msg)
void bahamut_cmd_372_error (char *source)
void bahamut_cmd_375 (char *source)
void bahamut_cmd_376 (char *source)
void bahamut_cmd_391 (char *source, char *timestr)
void bahamut_cmd_401 (char *source, char *who)
void bahamut_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void bahamut_cmd_bot_chan_mode (char *nick, char *chan)
void bahamut_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void bahamut_cmd_burst ()
void bahamut_cmd_capab ()
void bahamut_cmd_chg_nick (char *oldnick, char *newnick)
void bahamut_cmd_chghost (char *nick, char *vhost)
void bahamut_cmd_connect (int servernum)
void bahamut_cmd_ctcp (char *source, char *dest, char *buf)
void bahamut_cmd_eob ()
void bahamut_cmd_global (char *source, char *buf)
void bahamut_cmd_global_legacy (char *source, char *fmt)
void bahamut_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void bahamut_cmd_invite (char *source, char *chan, char *nick)
void bahamut_cmd_join (char *user, char *channel, time_t chantime)
void bahamut_cmd_jupe (char *jserver, char *who, char *reason)
void bahamut_cmd_kick (char *source, char *chan, char *user, char *buf)
void bahamut_cmd_mode (char *source, char *dest, char *buf)
void bahamut_cmd_nc_change (User *u)
void bahamut_cmd_nick (char *nick, char *name, char *modes)
void bahamut_cmd_notice (char *source, char *dest, char *buf)
void bahamut_cmd_notice2 (char *source, char *dest, char *msg)
void bahamut_cmd_notice_ops (char *source, char *dest, char *buf)
void bahamut_cmd_part (char *nick, char *chan, char *buf)
void bahamut_cmd_pass (char *pass)
void bahamut_cmd_pong (char *servname, char *who)
void bahamut_cmd_privmsg (char *source, char *dest, char *buf)
void bahamut_cmd_privmsg2 (char *source, char *dest, char *msg)
void bahamut_cmd_quit (char *source, char *buf)
void bahamut_cmd_release_svshold (char *nick)
void bahamut_cmd_remove_akill (char *user, char *host)
void bahamut_cmd_serv_notice (char *source, char *dest, char *msg)
void bahamut_cmd_serv_privmsg (char *source, char *dest, char *msg)
void bahamut_cmd_server (char *servname, int hop, char *descript)
void bahamut_cmd_sgline (char *mask, char *reason)
void bahamut_cmd_sqline (char *mask, char *reason)
void bahamut_cmd_squit (char *servname, char *message)
void bahamut_cmd_svid_umode (char *nick, time_t ts)
void bahamut_cmd_svid_umode2 (User *u, char *ts)
void bahamut_cmd_svid_umode3 (User *u, char *ts)
void bahamut_cmd_svinfo ()
void bahamut_cmd_svsadmin (char *server, int set)
void bahamut_cmd_svshold (char *nick)
void bahamut_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void bahamut_cmd_svskill (char *source, char *user, char *buf)
void bahamut_cmd_svsmode (User *u, int ac, char **av)
void bahamut_cmd_svsmode_chan (char *name, char *mode, char *nick)
void bahamut_cmd_svsnick (char *source, char *guest, time_t when)
void bahamut_cmd_svsnoop (char *server, int set)
void bahamut_cmd_svso (char *source, char *nick, char *flag)
void bahamut_cmd_svspart (char *source, char *nick, char *chan)
void bahamut_cmd_swhois (char *source, char *who, char *mask)
void bahamut_cmd_szline (char *mask, char *reason, char *whom)
void bahamut_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void bahamut_cmd_unban (char *name, char *nick)
void bahamut_cmd_unsgline (char *mask)
void bahamut_cmd_unsqline (char *user)
void bahamut_cmd_unszline (char *mask)
void bahamut_cmd_vhost_off (User *u)
void bahamut_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
int bahamut_flood_mode_check (char *value)
void bahamut_set_umode (User *user, int ac, char **av)
int bahamut_valid_chan (char *chan)
int bahamut_valid_nick (char *nick)
void moduleAddAnopeCmds ()
void moduleAddIRCDMsgs (void)

Variables

CBModeInfo myCbmodeinfos []
CBMode myCbmodes [128]
CMMode myCmmodes [128]
char myCsmodes [128]
CUMode myCumodes [128]
IRCDVar myIrcd []
IRCDCAPAB myIrcdcap []
unsigned long umodes [128]


Function Documentation

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

Definition at line 621 of file bahamut.c.

References m_nickcoll(), and MOD_CONT.

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

Definition at line 1481 of file bahamut.c.

References MOD_CONT.

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

Definition at line 1284 of file bahamut.c.

References m_away(), and MOD_CONT.

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

Definition at line 1448 of file bahamut.c.

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

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

Definition at line 570 of file bahamut.c.

References capab_parse(), and MOD_CONT.

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

Definition at line 1476 of file bahamut.c.

References MOD_CONT.

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

Definition at line 613 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_ChanServ.

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

Definition at line 1396 of file bahamut.c.

References alog(), debug, and MOD_CONT.

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

Definition at line 1417 of file bahamut.c.

References MOD_CONT.

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

Definition at line 604 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_HostServ.

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

Definition at line 1021 of file bahamut.c.

References do_join(), and MOD_CONT.

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

Definition at line 1012 of file bahamut.c.

References do_kick(), and MOD_CONT.

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

Definition at line 1002 of file bahamut.c.

References m_kill(), and MOD_CONT.

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

Definition at line 1466 of file bahamut.c.

References MOD_CONT.

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

Definition at line 988 of file bahamut.c.

References do_cmode(), do_umode(), and MOD_CONT.

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

Definition at line 1030 of file bahamut.c.

References m_motd(), and MOD_CONT.

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

Definition at line 595 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_MemoServ.

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

Definition at line 551 of file bahamut.c.

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

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

Definition at line 1406 of file bahamut.c.

References MOD_CONT.

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

Definition at line 586 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_NickServ.

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

Definition at line 577 of file bahamut.c.

References m_privmsg(), MOD_CONT, and s_OperServ.

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

Definition at line 947 of file bahamut.c.

References do_part(), and MOD_CONT.

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

Definition at line 1422 of file bahamut.c.

References MOD_CONT.

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

Definition at line 1293 of file bahamut.c.

References bahamut_cmd_pong(), MOD_CONT, and ServerName.

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

Definition at line 925 of file bahamut.c.

References m_privmsg(), and MOD_CONT.

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

Definition at line 979 of file bahamut.c.

References do_quit(), and MOD_CONT.

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

Definition at line 1471 of file bahamut.c.

References MOD_CONT.

int anope_event_server ( char *  source,
int  ac,
char **  av 
)

Definition at line 914 of file bahamut.c.

References do_server(), MOD_CONT, sstrdup(), stricmp(), and uplink.

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

Definition at line 527 of file bahamut.c.

References do_sjoin(), and MOD_CONT.

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

Definition at line 1411 of file bahamut.c.

References MOD_CONT.

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

Definition at line 971 of file bahamut.c.

References do_squit(), and MOD_CONT.

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

Definition at line 941 of file bahamut.c.

References MOD_CONT.

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

Definition at line 963 of file bahamut.c.

References do_topic(), and MOD_CONT.

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

Definition at line 955 of file bahamut.c.

References m_whois(), and MOD_CONT.

int AnopeInit ( int  argc,
char **  argv 
)

Now tell anope how to use us.

Deal with modes anope _needs_ to know

Definition at line 1646 of file bahamut.c.

References CMODE_i, CMODE_k, CMODE_l, CMODE_p, CMODE_s, MOD_CONT, moduleAddAnopeCmds(), moduleAddAuthor(), moduleAddIRCDMsgs(), moduleAddVersion(), moduleSetType(), myCbmodeinfos, myCbmodes, myCmmodes, myCsmodes, myCumodes, myIrcd, myIrcdcap, pmodule_invis_umode(), pmodule_invite_cmode(), pmodule_ircd_cap(), pmodule_ircd_cbmodeinfos(), pmodule_ircd_cbmodes(), pmodule_ircd_cmmodes(), pmodule_ircd_csmodes(), pmodule_ircd_cumodes(), pmodule_ircd_flood_mode_char_remove(), pmodule_ircd_flood_mode_char_set(), pmodule_ircd_useTSMode(), pmodule_ircd_var(), pmodule_ircd_version(), pmodule_key_mode(), pmodule_limit_mode(), pmodule_oper_umode(), pmodule_private_cmode(), pmodule_secret_cmode(), PROTOCOL, UMODE_i, and UMODE_o.

void bahamut_cmd_211 ( char *  buf  ) 

Definition at line 1215 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 1161 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_242 ( char *  buf  ) 

Definition at line 1195 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_243 ( char *  buf  ) 

Definition at line 1205 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_250 ( char *  buf  ) 

Definition at line 1111 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_307 ( char *  buf  ) 

Definition at line 1121 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_311 ( char *  buf  ) 

Definition at line 1131 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_312 ( char *  buf  ) 

Definition at line 1141 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_317 ( char *  buf  ) 

Definition at line 1151 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_318 ( char *  source,
char *  who 
)

Definition at line 1185 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_351 ( char *  source  ) 

Definition at line 1301 of file bahamut.c.

References EncModule, ircd, ircdvars_::name, send_cmd(), ServerName, version_build, version_flags, and version_number.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 1242 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_372_error ( char *  source  ) 

Definition at line 1247 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_375 ( char *  source  ) 

Definition at line 1253 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_376 ( char *  source  ) 

Definition at line 1259 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 1102 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1176 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

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

Definition at line 802 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

Definition at line 521 of file bahamut.c.

References anope_cmd_mode(), ircdvars_::botchanumode, and ircd.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_bot_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)

Definition at line 1309 of file bahamut.c.

References bahamut_cmd_sqline(), EnforceQlinedNick(), s_BotServ, send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_burst (  ) 

Definition at line 789 of file bahamut.c.

References send_cmd().

Referenced by bahamut_cmd_connect().

void bahamut_cmd_capab (  ) 

Definition at line 885 of file bahamut.c.

References send_cmd().

Referenced by bahamut_cmd_connect().

void bahamut_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1387 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_chghost ( char *  nick,
char *  vhost 
)

Definition at line 1554 of file bahamut.c.

References alog(), and debug.

void bahamut_cmd_connect ( int  servernum  ) 

Definition at line 891 of file bahamut.c.

References bahamut_cmd_burst(), bahamut_cmd_capab(), bahamut_cmd_pass(), bahamut_cmd_server(), bahamut_cmd_svinfo(), me_server, new_server(), RemotePassword, RemotePassword2, RemotePassword3, SERVER_ISME, ServerDesc, and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_ctcp ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1539 of file bahamut.c.

References normalizeBuffer(), and send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_eob (  ) 

Definition at line 1443 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_global ( char *  source,
char *  buf 
)

Definition at line 1092 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 1514 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_guest_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)

Definition at line 1332 of file bahamut.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_invite ( char *  source,
char *  chan,
char *  nick 
)

Definition at line 1265 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_join ( char *  user,
char *  channel,
time_t  chantime 
)

Definition at line 784 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_jupe ( char *  jserver,
char *  who,
char *  reason 
)

Definition at line 1500 of file bahamut.c.

References bahamut_cmd_server(), bahamut_cmd_squit(), findserver(), me_server, new_server(), SERVER_JUPED, servlist, and snprintf().

Referenced by moduleAddAnopeCmds().

void bahamut_cmd_kick ( char *  source,
char *  chan,
char *  user,
char *  buf 
)

Definition at line 1233 of file bahamut.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().