charybdis.c File Reference

#include "services.h"
#include "pseudo.h"
#include "charybdis.h"

Include dependency graph for charybdis.c:

Go to the source code of this file.

Functions

void charybdis_set_umode (User *user, int ac, char **av)
void charybdis_cmd_notice (char *source, char *dest, char *buf)
void charybdis_cmd_notice2 (char *source, char *dest, char *msg)
void charybdis_cmd_privmsg (char *source, char *dest, char *buf)
void charybdis_cmd_privmsg2 (char *source, char *dest, char *msg)
void charybdis_cmd_serv_notice (char *source, char *dest, char *msg)
void charybdis_cmd_serv_privmsg (char *source, char *dest, char *msg)
void charybdis_cmd_global (char *source, char *buf)
void charybdis_cmd_global_legacy (char *source, char *fmt)
int anope_event_sjoin (char *source, int ac, char **av)
int anope_event_nick (char *source, int ac, char **av)
int anope_event_euid (char *source, int ac, char **av)
int anope_event_topic (char *source, int ac, char **av)
int anope_event_tburst (char *source, int ac, char **av)
int anope_event_436 (char *source, int ac, char **av)
void moduleAddIRCDMsgs (void)
void charybdis_cmd_sqline (char *mask, char *reason)
void charybdis_cmd_unsgline (char *mask)
void charybdis_cmd_unszline (char *mask)
void charybdis_cmd_szline (char *mask, char *reason, char *whom)
void charybdis_cmd_svsnoop (char *server, int set)
void charybdis_cmd_svsadmin (char *server, int set)
void charybdis_cmd_sgline (char *mask, char *reason)
void charybdis_cmd_remove_akill (char *user, char *host)
void charybdis_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void charybdis_cmd_vhost_off (User *u)
void charybdis_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
void charybdis_cmd_unsqline (char *user)
void charybdis_cmd_join (char *user, char *channel, time_t chantime)
void charybdis_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void charybdis_cmd_svskill (char *source, char *user, char *buf)
void charybdis_cmd_svsmode (User *u, int ac, char **av)
void charybdis_cmd_svinfo ()
void charybdis_cmd_svsinfo ()
void charybdis_cmd_capab ()
void charybdis_cmd_pass (char *pass)
void charybdis_cmd_server (char *servname, int hop, char *descript)
void charybdis_cmd_connect (int servernum)
void charybdis_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void charybdis_cmd_part (char *nick, char *chan, char *buf)
int anope_event_ping (char *source, int ac, char **av)
int anope_event_away (char *source, int ac, char **av)
int anope_event_kill (char *source, int ac, char **av)
int anope_event_kick (char *source, int ac, char **av)
void charybdis_cmd_eob ()
int anope_event_join (char *source, int ac, char **av)
int anope_event_motd (char *source, int ac, char **av)
int anope_event_privmsg (char *source, int ac, char **av)
int anope_event_part (char *source, int ac, char **av)
int anope_event_whois (char *source, int ac, char **av)
int anope_event_server (char *source, int ac, char **av)
int anope_event_sid (char *source, int ac, char **av)
int anope_event_squit (char *source, int ac, char **av)
int anope_event_quit (char *source, int ac, char **av)
void charybdis_cmd_372 (char *source, char *msg)
void charybdis_cmd_372_error (char *source)
void charybdis_cmd_375 (char *source)
void charybdis_cmd_376 (char *source)
void charybdis_cmd_391 (char *source, char *timestr)
void charybdis_cmd_250 (char *buf)
void charybdis_cmd_307 (char *buf)
void charybdis_cmd_311 (char *buf)
void charybdis_cmd_312 (char *buf)
void charybdis_cmd_317 (char *buf)
void charybdis_cmd_219 (char *source, char *letter)
void charybdis_cmd_401 (char *source, char *who)
void charybdis_cmd_318 (char *source, char *who)
void charybdis_cmd_242 (char *buf)
void charybdis_cmd_243 (char *buf)
void charybdis_cmd_211 (char *buf)
void charybdis_cmd_mode (char *source, char *dest, char *buf)
void charybdis_cmd_tmode (char *source, char *dest, const char *fmt,...)
void charybdis_cmd_nick (char *nick, char *name, char *mode)
void charybdis_cmd_kick (char *source, char *chan, char *user, char *buf)
void charybdis_cmd_notice_ops (char *source, char *dest, char *buf)
void charybdis_cmd_bot_chan_mode (char *nick, char *chan)
void charybdis_cmd_quit (char *source, char *buf)
void charybdis_cmd_pong (char *servname, char *who)
void charybdis_cmd_invite (char *source, char *chan, char *nick)
void charybdis_cmd_squit (char *servname, char *message)
int anope_event_mode (char *source, int ac, char **av)
int anope_event_tmode (char *source, int ac, char **av)
void charybdis_cmd_351 (char *source)
int anope_event_capab (char *source, int ac, char **av)
void charybdis_cmd_svshold (char *nick)
void charybdis_cmd_release_svshold (char *nick)
void charybdis_cmd_svsnick (char *nick, char *newnick, time_t when)
void charybdis_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void charybdis_cmd_svso (char *source, char *nick, char *flag)
void charybdis_cmd_unban (char *name, char *nick)
void charybdis_cmd_svsmode_chan (char *name, char *mode, char *nick)
void charybdis_cmd_svid_umode (char *nick, time_t ts)
void charybdis_cmd_nc_change (User *u)
void charybdis_cmd_svid_umode2 (User *u, char *ts)
void charybdis_cmd_svid_umode3 (User *u, char *ts)
void charybdis_cmd_chg_nick (char *oldnick, char *newnick)
int anope_event_svinfo (char *source, int ac, char **av)
int anope_event_pass (char *source, int ac, char **av)
void charybdis_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void charybdis_cmd_svspart (char *source, char *nick, char *chan)
void charybdis_cmd_swhois (char *source, char *who, char *mask)
int anope_event_notice (char *source, int ac, char **av)
int anope_event_admin (char *source, int ac, char **av)
int anope_event_invite (char *source, int ac, char **av)
int anope_event_bmask (char *source, int ac, char **av)
int charybdis_flood_mode_check (char *value)
int anope_event_error (char *source, int ac, char **av)
void charybdis_cmd_jupe (char *jserver, char *who, char *reason)
int charybdis_valid_nick (char *nick)
int charybdis_valid_chan (char *chan)
void charybdis_cmd_ctcp (char *source, char *dest, char *buf)
int charybdis_send_account (int argc, char **argv)
int charybdis_send_deaccount (int argc, char **argv)
void moduleAddAnopeCmds ()
int AnopeInit (int argc, char **argv)
void AnopeFini (void)

Variables

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


Function Documentation

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

Definition at line 757 of file charybdis.c.

References m_nickcoll(), and MOD_CONT.

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

Definition at line 1733 of file charybdis.c.

References MOD_CONT.

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

Definition at line 1084 of file charybdis.c.

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

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

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

Definition at line 1572 of file charybdis.c.

References capab_parse(), MOD_CONT, myStrGetToken(), scalloc(), and srealloc().

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

Definition at line 1792 of file charybdis.c.

References alog(), debug, and MOD_CONT.

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

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

Definition at line 1738 of file charybdis.c.

References MOD_CONT.

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

Definition at line 1125 of file charybdis.c.

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

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

Definition at line 1112 of file charybdis.c.

References do_kick(), and MOD_CONT.

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

Definition at line 1097 of file charybdis.c.

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

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

Definition at line 1533 of file charybdis.c.

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

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

Definition at line 1137 of file charybdis.c.

References m_motd(), and MOD_CONT.

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

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

Definition at line 1728 of file charybdis.c.

References MOD_CONT.

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

Definition at line 1163 of file charybdis.c.

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

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

Definition at line 1705 of file charybdis.c.

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

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

Definition at line 1076 of file charybdis.c.

References charybdis_cmd_pong(), MOD_CONT, and ServerName.

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

Definition at line 1147 of file charybdis.c.

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

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

Definition at line 1224 of file charybdis.c.

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

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

Definition at line 1189 of file charybdis.c.

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

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

Definition at line 1204 of file charybdis.c.

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

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

Definition at line 560 of file charybdis.c.

References do_sjoin(), and MOD_CONT.

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

Definition at line 1216 of file charybdis.c.

References do_squit(), and MOD_CONT.

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

Definition at line 1699 of file charybdis.c.

References MOD_CONT.

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

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

Definition at line 1556 of file charybdis.c.

References do_cmode(), and MOD_CONT.

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

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

Definition at line 1177 of file charybdis.c.

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

void AnopeFini ( void   ) 

Definition at line 2002 of file charybdis.c.

References TS6SID, and UseTS6.

int AnopeInit ( int  argc,
char **  argv 
)

void charybdis_cmd_211 ( char *  buf  ) 

Definition at line 1378 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 1322 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_242 ( char *  buf  ) 

Definition at line 1358 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_243 ( char *  buf  ) 

Definition at line 1368 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_250 ( char *  buf  ) 

Definition at line 1272 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_307 ( char *  buf  ) 

Definition at line 1282 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_311 ( char *  buf  ) 

Definition at line 1292 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_312 ( char *  buf  ) 

Definition at line 1302 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_317 ( char *  buf  ) 

Definition at line 1312 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_318 ( char *  source,
char *  who 
)

Definition at line 1347 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_351 ( char *  source  ) 

void charybdis_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 1238 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_372_error ( char *  source  ) 

Definition at line 1243 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_375 ( char *  source  ) 

Definition at line 1250 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_376 ( char *  source  ) 

Definition at line 1256 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 1263 of file charybdis.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1337 of file charybdis.c.

References send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

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

Definition at line 926 of file charybdis.c.

References find_uid(), s_OperServ, send_cmd(), uid_::uid, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)

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

void charybdis_cmd_capab (  ) 

Definition at line 1001 of file charybdis.c.

References send_cmd().

Referenced by charybdis_cmd_connect().

void charybdis_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1682 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_connect ( int  servernum  ) 

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

Definition at line 1838 of file charybdis.c.

References normalizeBuffer(), and send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_eob (  ) 

Definition at line 1120 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_global ( char *  source,
char *  buf 
)

Definition at line 521 of file charybdis.c.

References find_uid(), send_cmd(), ServerName, TS6SID, uid_::uid, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 542 of file charybdis.c.

References find_uid(), send_cmd(), ServerName, TS6SID, uid_::uid, and UseTS6.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1633 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1507 of file charybdis.c.

References find_uid(), finduser(), send_cmd(), user_::uid, uid_::uid, and UseTS6.

Referenced by moduleAddAnopeCmds().

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

Definition at line 908 of file charybdis.c.

References find_uid(), send_cmd(), uid_::uid, and UseTS6.

Referenced by moduleAddAnopeCmds().

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

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

Definition at line 1438 of file charybdis.c.

References find_uid(), finduser(), send_cmd(), user_::uid, uid_::uid, and UseTS6.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1387 of file charybdis.c.

References find_uid(),