Anope IRC Services  Version 1.8
Functions | Variables
charybdis.c File Reference
#include "services.h"
#include "pseudo.h"
#include "charybdis.h"
#include "version.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_bob ()
 
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 761 of file charybdis.c.

References m_nickcoll(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1753 of file charybdis.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1096 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1586 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1812 of file charybdis.c.

References alog(), debug, and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1758 of file charybdis.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1139 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1126 of file charybdis.c.

References do_kick(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1109 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1547 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1151 of file charybdis.c.

References m_motd(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 594 of file charybdis.c.

References anope_set_umode(), do_nick(), findserver_uid(), MOD_CONT, server_::name, servlist, and UseTS6.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1748 of file charybdis.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1177 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1725 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1088 of file charybdis.c.

References charybdis_cmd_pong(), MOD_CONT, and ServerName.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1161 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1238 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1203 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

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().

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

Definition at line 564 of file charybdis.c.

References do_sjoin(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1230 of file charybdis.c.

References do_squit(), and MOD_CONT.

Referenced by moduleAddIRCDMsgs().

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

Definition at line 1719 of file charybdis.c.

References MOD_CONT.

Referenced by moduleAddIRCDMsgs().

int anope_event_tburst ( char *  source,
int  ac,
char **  av 
)
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().

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

Definition at line 1191 of file charybdis.c.

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

Referenced by moduleAddIRCDMsgs().

void AnopeFini ( void  )

Definition at line 2024 of file charybdis.c.

References TS6SID, and UseTS6.

int AnopeInit ( int  argc,
char **  argv 
)
void charybdis_cmd_211 ( char *  buf)

Definition at line 1392 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 1336 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_242 ( char *  buf)

Definition at line 1372 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_243 ( char *  buf)

Definition at line 1382 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_250 ( char *  buf)

Definition at line 1286 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_307 ( char *  buf)

Definition at line 1296 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_311 ( char *  buf)

Definition at line 1306 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_312 ( char *  buf)

Definition at line 1316 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_317 ( char *  buf)

Definition at line 1326 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 1361 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 1252 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_372_error ( char *  source)

Definition at line 1257 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_375 ( char *  source)

Definition at line 1264 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_376 ( char *  source)

Definition at line 1270 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 1277 of file charybdis.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1351 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 933 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_bob ( )

Definition at line 1052 of file charybdis.c.

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 1008 of file charybdis.c.

References send_cmd().

Referenced by charybdis_cmd_connect().

void charybdis_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1696 of file charybdis.c.

References find_uid(), uid_::nick, NICKMAX, send_cmd(), and strscpy().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_connect ( int  servernum)
void charybdis_cmd_ctcp ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1858 of file charybdis.c.

References normalizeBuffer(), and send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_eob ( )

Definition at line 1134 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_global ( char *  source,
char *  buf 
)

Definition at line 525 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 546 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 1647 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1521 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 915 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 1452 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1401 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_nc_change ( User u)

Definition at line 1679 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_nick ( char *  nick,
char *  name,
char *  mode 
)
void charybdis_cmd_notice ( char *  source,
char *  dest,
char *  buf 
)
void charybdis_cmd_notice2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 478 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1470 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_part ( char *  nick,
char *  chan,
char *  buf 
)

Definition at line 1075 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_pass ( char *  pass)

Definition at line 1015 of file charybdis.c.

References send_cmd(), TS6SID, and UseTS6.

Referenced by charybdis_cmd_connect().

void charybdis_cmd_pong ( char *  servname,
char *  who 
)

Definition at line 1510 of file charybdis.c.

References send_cmd(), TS6SID, and UseTS6.

Referenced by anope_event_ping(), and moduleAddAnopeCmds().

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

Definition at line 489 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_privmsg2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 503 of file charybdis.c.

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

Referenced by charybdis_cmd_notice(), and moduleAddAnopeCmds().

void charybdis_cmd_quit ( char *  source,
char *  buf 
)

Definition at line 1496 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_release_svshold ( char *  nick)

Definition at line 1626 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_remove_akill ( char *  user,
char *  host 
)

Definition at line 872 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_serv_notice ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 514 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_serv_privmsg ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 519 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_server ( char *  servname,
int  hop,
char *  descript 
)

Definition at line 1025 of file charybdis.c.

References send_cmd().

Referenced by charybdis_cmd_connect(), and charybdis_cmd_jupe().

void charybdis_cmd_sgline ( char *  mask,
char *  reason 
)

Definition at line 863 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_sqline ( char *  mask,
char *  reason 
)
void charybdis_cmd_squit ( char *  servname,
char *  message 
)

Definition at line 1538 of file charybdis.c.

References send_cmd().

Referenced by charybdis_cmd_jupe(), and moduleAddAnopeCmds().

void charybdis_cmd_svid_umode ( char *  nick,
time_t  ts 
)

Definition at line 1672 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svid_umode2 ( User u,
char *  ts 
)

Definition at line 1685 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svid_umode3 ( User u,
char *  ts 
)

Definition at line 1690 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svinfo ( )

Definition at line 977 of file charybdis.c.

References send_cmd().

Referenced by charybdis_cmd_connect().

void charybdis_cmd_svsadmin ( char *  server,
int  set 
)

Definition at line 858 of file charybdis.c.

References charybdis_cmd_svsnoop().

void charybdis_cmd_svshold ( char *  nick)

Definition at line 1620 of file charybdis.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svsinfo ( )

Definition at line 982 of file charybdis.c.

void charybdis_cmd_svsjoin ( char *  source,
char *  nick,
char *  chan,
char *  param 
)

Definition at line 1733 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svskill ( char *  source,
char *  user,
char *  buf 
)

Definition at line 945 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svsmode ( User u,
int  ac,
char **  av 
)

Definition at line 963 of file charybdis.c.

References user_::nick, send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svsmode_chan ( char *  name,
char *  mode,
char *  nick 
)

Definition at line 1665 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svsnick ( char *  nick,
char *  newnick,
time_t  when 
)

Definition at line 1632 of file charybdis.c.

References finduser(), server_::name, user_::nick, send_cmd(), user_::server, and user_::timestamp.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_svsnoop ( char *  server,
int  set 
)

Definition at line 853 of file charybdis.c.

Referenced by charybdis_cmd_svsadmin(), and moduleAddAnopeCmds().

void charybdis_cmd_svso ( char *  source,
char *  nick,
char *  flag 
)

Definition at line 1653 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1738 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_swhois ( char *  source,
char *  who,
char *  mask 
)

Definition at line 1743 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_szline ( char *  mask,
char *  reason,
char *  whom 
)

Definition at line 848 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_tmode ( char *  source,
char *  dest,
const char *  fmt,
  ... 
)

Definition at line 1417 of file charybdis.c.

References BUFSIZE, send_cmd(), and vsnprintf().

Referenced by charybdis_cmd_bot_chan_mode().

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

Definition at line 884 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_unban ( char *  name,
char *  nick 
)

Definition at line 1658 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_unsgline ( char *  mask)

Definition at line 834 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_unsqline ( char *  user)

Definition at line 906 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_unszline ( char *  mask)

Definition at line 843 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_vhost_off ( User u)

Definition at line 894 of file charybdis.c.

References user_::host, user_::nick, send_cmd(), ServerName, TS6SID, and UseTS6.

Referenced by moduleAddAnopeCmds().

void charybdis_cmd_vhost_on ( char *  nick,
char *  vIdent,
char *  vhost 
)

Definition at line 900 of file charybdis.c.

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

Referenced by moduleAddAnopeCmds().

int charybdis_flood_mode_check ( char *  value)

Definition at line 1796 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

int charybdis_send_account ( int  argc,
char **  argv 
)

Definition at line 1872 of file charybdis.c.

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

Referenced by AnopeInit().

int charybdis_send_deaccount ( int  argc,
char **  argv 
)

Definition at line 1882 of file charybdis.c.

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

Referenced by AnopeInit().

void charybdis_set_umode ( User user,
int  ac,
char **  av 
)
int charybdis_valid_chan ( char *  chan)

Definition at line 1851 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

int charybdis_valid_nick ( char *  nick)

Definition at line 1839 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

void moduleAddAnopeCmds ( )

Tell anope which function we want to perform each task inside of anope. These prototypes must match what anope expects.

Definition at line 1894 of file charybdis.c.

References charybdis_cmd_211(), charybdis_cmd_219(), charybdis_cmd_242(), charybdis_cmd_243(), charybdis_cmd_250(), charybdis_cmd_307(), charybdis_cmd_311(), charybdis_cmd_312(), charybdis_cmd_317(), charybdis_cmd_318(), charybdis_cmd_351(), charybdis_cmd_372(), charybdis_cmd_372_error(), charybdis_cmd_375(), charybdis_cmd_376(), charybdis_cmd_391(), charybdis_cmd_401(), charybdis_cmd_akill(), charybdis_cmd_bob(), charybdis_cmd_bot_chan_mode(), charybdis_cmd_bot_nick(), charybdis_cmd_chg_nick(), charybdis_cmd_connect(), charybdis_cmd_ctcp(), charybdis_cmd_eob(), charybdis_cmd_global(), charybdis_cmd_global_legacy(), charybdis_cmd_guest_nick(), charybdis_cmd_invite(), charybdis_cmd_join(), charybdis_cmd_jupe(), charybdis_cmd_kick(), charybdis_cmd_mode(), charybdis_cmd_nc_change(), charybdis_cmd_nick(), charybdis_cmd_notice(), charybdis_cmd_notice2(), charybdis_cmd_notice_ops(), charybdis_cmd_part(), charybdis_cmd_pong(), charybdis_cmd_privmsg(), charybdis_cmd_privmsg2(), charybdis_cmd_quit(), charybdis_cmd_release_svshold(), charybdis_cmd_remove_akill(), charybdis_cmd_serv_notice(), charybdis_cmd_serv_privmsg(), charybdis_cmd_sgline(), charybdis_cmd_sqline(), charybdis_cmd_squit(), charybdis_cmd_svid_umode(), charybdis_cmd_svid_umode2(), charybdis_cmd_svid_umode3(), charybdis_cmd_svshold(), charybdis_cmd_svsjoin(), charybdis_cmd_svskill(), charybdis_cmd_svsmode(), charybdis_cmd_svsmode_chan(), charybdis_cmd_svsnick(), charybdis_cmd_svsnoop(), charybdis_cmd_svso(), charybdis_cmd_svspart(), charybdis_cmd_swhois(), charybdis_cmd_szline(), charybdis_cmd_topic(), charybdis_cmd_unban(), charybdis_cmd_unsgline(), charybdis_cmd_unsqline(), charybdis_cmd_unszline(), charybdis_cmd_vhost_off(), charybdis_cmd_vhost_on(), charybdis_flood_mode_check(), charybdis_set_umode(), charybdis_valid_chan(), charybdis_valid_nick(), pmodule_cmd_211(), pmodule_cmd_219(), pmodule_cmd_242(), pmodule_cmd_243(), pmodule_cmd_250(), pmodule_cmd_307(), pmodule_cmd_311(), pmodule_cmd_312(), pmodule_cmd_317(), pmodule_cmd_318(), pmodule_cmd_351(), pmodule_cmd_372(), pmodule_cmd_372_error(), pmodule_cmd_375(), pmodule_cmd_376(), pmodule_cmd_391(), pmodule_cmd_401(), pmodule_cmd_akill(), pmodule_cmd_bob(), pmodule_cmd_bot_chan_mode(), pmodule_cmd_bot_nick(), pmodule_cmd_chg_nick(), pmodule_cmd_connect(), pmodule_cmd_ctcp(), pmodule_cmd_eob(), pmodule_cmd_global(), pmodule_cmd_global_legacy(), pmodule_cmd_guest_nick(), pmodule_cmd_invite(), pmodule_cmd_join(), pmodule_cmd_jupe(), pmodule_cmd_kick(), pmodule_cmd_mode(), pmodule_cmd_nc_change(), pmodule_cmd_nick(), pmodule_cmd_notice(), pmodule_cmd_notice2(), pmodule_cmd_notice_ops(), pmodule_cmd_part(), pmodule_cmd_pong(), pmodule_cmd_privmsg(), pmodule_cmd_privmsg2(), pmodule_cmd_quit(), pmodule_cmd_release_svshold(), pmodule_cmd_remove_akill(), pmodule_cmd_serv_notice(), pmodule_cmd_serv_privmsg(), pmodule_cmd_sgline(), pmodule_cmd_sqline(), pmodule_cmd_squit(), pmodule_cmd_svid_umode(), pmodule_cmd_svid_umode2(), pmodule_cmd_svid_umode3(), pmodule_cmd_svshold(), pmodule_cmd_svsjoin(), pmodule_cmd_svskill(), pmodule_cmd_svsmode(), pmodule_cmd_svsmode_chan(), pmodule_cmd_svsnick(), pmodule_cmd_svsnoop(), pmodule_cmd_svso(), pmodule_cmd_svspart(), pmodule_cmd_swhois(), pmodule_cmd_szline(), pmodule_cmd_topic(), pmodule_cmd_unban(), pmodule_cmd_unsgline(), pmodule_cmd_unsqline(), pmodule_cmd_unszline(), pmodule_cmd_vhost_off(), pmodule_cmd_vhost_on(), pmodule_flood_mode_check(), pmodule_set_umode(), pmodule_valid_chan(), and pmodule_valid_nick().

Referenced by AnopeInit().

void moduleAddIRCDMsgs ( void  )

Variable Documentation

CBModeInfo myCbmodeinfos[]
Initial value:
= {
{'c', CMODE_c, 0, NULL, NULL},
{'g', CMODE_g, 0, NULL, NULL},
{'i', CMODE_i, 0, NULL, NULL},
{'k', CMODE_k, 0, get_key, cs_get_key},
{'m', CMODE_m, 0, NULL, NULL},
{'n', CMODE_n, 0, NULL, NULL},
{'p', CMODE_p, 0, NULL, NULL},
{'r', CMODE_r, 0, NULL, NULL},
{'s', CMODE_s, 0, NULL, NULL},
{'t', CMODE_t, 0, NULL, NULL},
{'z', CMODE_z, 0, NULL, NULL},
{'F', CMODE_F, 0, NULL, NULL},
{'L', CMODE_L, 0, NULL, NULL},
{'P', CMODE_P, 0, NULL, NULL},
{'Q', CMODE_Q, 0, NULL, NULL},
{0}
}
#define CMODE_z
Definition: charybdis.h:40
#define CBM_MINUS_NO_ARG
Definition: services.h:928
#define CMODE_p
Definition: bahamut.h:47
#define CMODE_F
Definition: charybdis.h:42
E char * get_limit(Channel *chan)
Definition: channels.c:1881
#define CMODE_l
Definition: bahamut.h:51
#define CMODE_n
Definition: bahamut.h:46
#define CMODE_t
Definition: bahamut.h:49
E char * cs_get_key(ChannelInfo *ci)
Definition: chanserv.c:2447
#define CMODE_j
Definition: bahamut.h:56
#define CMODE_Q
Definition: charybdis.h:44
E char * cs_get_redirect(ChannelInfo *ci)
Definition: chanserv.c:2476
#define CMODE_r
Definition: bahamut.h:53
#define CMODE_f
Definition: charybdis.h:35
E char * get_redirect(Channel *chan)
Definition: channels.c:1894
E char * cs_get_flood(ChannelInfo *ci)
Definition: chanserv.c:2417
#define CMODE_L
Definition: charybdis.h:43
E char * get_flood(Channel *chan)
Definition: channels.c:1860
#define CMODE_m
Definition: bahamut.h:45
#define CMODE_k
Definition: bahamut.h:50
#define CMODE_g
Definition: charybdis.h:39
E char * cs_get_limit(ChannelInfo *ci)
Definition: chanserv.c:2458
#define CMODE_c
Definition: bahamut.h:54
E char * get_key(Channel *chan)
Definition: channels.c:1874
#define CMODE_i
Definition: bahamut.h:44
#define CMODE_s
Definition: bahamut.h:48
#define CMODE_P
Definition: charybdis.h:38

Definition at line 386 of file charybdis.c.

CBMode myCbmodes[128]

Definition at line 320 of file charybdis.c.

CMMode myCmmodes[128]

Definition at line 270 of file charybdis.c.

char myCsmodes[128]
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,
0,
0, 0, 0,
0,
0, 0, 0, 0,
0,
'v', 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
'o', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 249 of file charybdis.c.

Referenced by AnopeInit().

CUMode myCumodes[128]

Definition at line 409 of file charybdis.c.

IRCDVar myIrcd[]

Definition at line 18 of file charybdis.c.

IRCDCAPAB myIrcdcap[]

Definition at line 117 of file charybdis.c.

unsigned long umodes[128]

Definition at line 197 of file charybdis.c.

Referenced by charybdis_set_umode().