Functions | Variables

ratbox.c File Reference

#include "services.h"
#include "pseudo.h"
#include "ratbox.h"
#include "version.h"
Include dependency graph for ratbox.c:

Go to the source code of this file.

Functions

void ratbox_set_umode (User *user, int ac, char **av)
void ratbox_cmd_notice (char *source, char *dest, char *buf)
void ratbox_cmd_notice2 (char *source, char *dest, char *msg)
void ratbox_cmd_privmsg (char *source, char *dest, char *buf)
void ratbox_cmd_privmsg2 (char *source, char *dest, char *msg)
void ratbox_cmd_serv_notice (char *source, char *dest, char *msg)
void ratbox_cmd_serv_privmsg (char *source, char *dest, char *msg)
void ratbox_cmd_global (char *source, char *buf)
void ratbox_cmd_global_legacy (char *source, char *fmt)
int ratbox_login (int argc, char **argv)
int ratbox_logout (int argc, char **argv)
int anope_event_sjoin (char *source, int ac, char **av)
int anope_event_nick (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 ratbox_cmd_sqline (char *mask, char *reason)
void ratbox_cmd_unsgline (char *mask)
void ratbox_cmd_unszline (char *mask)
void ratbox_cmd_szline (char *mask, char *reason, char *whom)
void ratbox_cmd_svsnoop (char *server, int set)
void ratbox_cmd_svsadmin (char *server, int set)
void ratbox_cmd_sgline (char *mask, char *reason)
void ratbox_cmd_remove_akill (char *user, char *host)
void ratbox_cmd_topic (char *whosets, char *chan, char *whosetit, char *topic, time_t when)
void ratbox_cmd_vhost_off (User *u)
void ratbox_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
void ratbox_cmd_unsqline (char *user)
void ratbox_cmd_join (char *user, char *channel, time_t chantime)
void ratbox_cmd_akill (char *user, char *host, char *who, time_t when, time_t expires, char *reason)
void ratbox_cmd_svskill (char *source, char *user, char *buf)
void ratbox_cmd_svsmode (User *u, int ac, char **av)
void ratbox_cmd_svinfo ()
void ratbox_cmd_svsinfo ()
void ratbox_cmd_capab ()
void ratbox_cmd_pass (char *pass)
void ratbox_cmd_server (char *servname, int hop, char *descript)
void ratbox_cmd_connect (int servernum)
void ratbox_cmd_bob ()
void ratbox_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
void ratbox_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 ratbox_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_encap (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 ratbox_cmd_372 (char *source, char *msg)
void ratbox_cmd_372_error (char *source)
void ratbox_cmd_375 (char *source)
void ratbox_cmd_376 (char *source)
void ratbox_cmd_391 (char *source, char *timestr)
void ratbox_cmd_250 (char *buf)
void ratbox_cmd_307 (char *buf)
void ratbox_cmd_311 (char *buf)
void ratbox_cmd_312 (char *buf)
void ratbox_cmd_317 (char *buf)
void ratbox_cmd_219 (char *source, char *letter)
void ratbox_cmd_401 (char *source, char *who)
void ratbox_cmd_318 (char *source, char *who)
void ratbox_cmd_242 (char *buf)
void ratbox_cmd_243 (char *buf)
void ratbox_cmd_211 (char *buf)
void ratbox_cmd_mode (char *source, char *dest, char *buf)
void ratbox_cmd_tmode (char *source, char *dest, const char *fmt,...)
void ratbox_cmd_nick (char *nick, char *name, char *mode)
void ratbox_cmd_kick (char *source, char *chan, char *user, char *buf)
void ratbox_cmd_notice_ops (char *source, char *dest, char *buf)
void ratbox_cmd_bot_chan_mode (char *nick, char *chan)
void ratbox_cmd_quit (char *source, char *buf)
void ratbox_cmd_pong (char *servname, char *who)
void ratbox_cmd_invite (char *source, char *chan, char *nick)
void ratbox_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 ratbox_cmd_351 (char *source)
int anope_event_capab (char *source, int ac, char **av)
void ratbox_cmd_svshold (char *nick)
void ratbox_cmd_release_svshold (char *nick)
void ratbox_cmd_svsnick (char *nick, char *newnick, time_t when)
void ratbox_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
void ratbox_cmd_svso (char *source, char *nick, char *flag)
void ratbox_cmd_unban (char *name, char *nick)
void ratbox_cmd_svsmode_chan (char *name, char *mode, char *nick)
void ratbox_cmd_svid_umode (char *nick, time_t ts)
void ratbox_cmd_nc_change (User *u)
void ratbox_cmd_svid_umode2 (User *u, char *ts)
void ratbox_cmd_svid_umode3 (User *u, char *ts)
void ratbox_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 ratbox_cmd_svsjoin (char *source, char *nick, char *chan, char *param)
void ratbox_cmd_svspart (char *source, char *nick, char *chan)
void ratbox_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 ratbox_flood_mode_check (char *value)
int anope_event_error (char *source, int ac, char **av)
void ratbox_cmd_jupe (char *jserver, char *who, char *reason)
int ratbox_valid_nick (char *nick)
int ratbox_valid_chan (char *chan)
void ratbox_cmd_ctcp (char *source, char *dest, char *buf)
void moduleAddAnopeCmds ()
int AnopeInit (int argc, char **argv)

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 722 of file ratbox.c.

References m_nickcoll().

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

Definition at line 1724 of file ratbox.c.

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

Definition at line 1050 of file ratbox.c.

References find_byuid(), m_away(), 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 1567 of file ratbox.c.

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

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

Definition at line 1772 of file ratbox.c.

References alog(), and debug.

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

Definition at line 1729 of file ratbox.c.

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

Definition at line 1093 of file ratbox.c.

References do_join(), and do_sjoin().

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

Definition at line 1080 of file ratbox.c.

References do_kick().

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

Definition at line 1063 of file ratbox.c.

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

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

Definition at line 1527 of file ratbox.c.

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

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

Definition at line 1104 of file ratbox.c.

References m_motd().

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

Definition at line 597 of file ratbox.c.

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

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

Definition at line 1719 of file ratbox.c.

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

Definition at line 1130 of file ratbox.c.

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

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

Definition at line 1696 of file ratbox.c.

References sstrdup(), TS6UPLINK, and UseTS6.

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

Definition at line 1042 of file ratbox.c.

References ratbox_cmd_pong(), and ServerName.

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

Definition at line 1114 of file ratbox.c.

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

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

Definition at line 1221 of file ratbox.c.

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

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

Definition at line 1156 of file ratbox.c.

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

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

Definition at line 1201 of file ratbox.c.

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

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

Definition at line 567 of file ratbox.c.

References do_sjoin().

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

Definition at line 1213 of file ratbox.c.

References do_squit().

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

Definition at line 1690 of file ratbox.c.

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

Definition at line 1550 of file ratbox.c.

References do_cmode().

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

Definition at line 1144 of file ratbox.c.

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

int AnopeInit ( int  argc,
char **  argv 
)
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 1837 of file ratbox.c.

References 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(), pmodule_valid_nick(), ratbox_cmd_211(), ratbox_cmd_219(), ratbox_cmd_242(), ratbox_cmd_243(), ratbox_cmd_250(), ratbox_cmd_307(), ratbox_cmd_311(), ratbox_cmd_312(), ratbox_cmd_317(), ratbox_cmd_318(), ratbox_cmd_351(), ratbox_cmd_372(), ratbox_cmd_372_error(), ratbox_cmd_375(), ratbox_cmd_376(), ratbox_cmd_391(), ratbox_cmd_401(), ratbox_cmd_akill(), ratbox_cmd_bob(), ratbox_cmd_bot_chan_mode(), ratbox_cmd_bot_nick(), ratbox_cmd_chg_nick(), ratbox_cmd_connect(), ratbox_cmd_ctcp(), ratbox_cmd_eob(), ratbox_cmd_global(), ratbox_cmd_global_legacy(), ratbox_cmd_guest_nick(), ratbox_cmd_invite(), ratbox_cmd_join(), ratbox_cmd_jupe(), ratbox_cmd_kick(), ratbox_cmd_mode(), ratbox_cmd_nc_change(), ratbox_cmd_nick(), ratbox_cmd_notice(), ratbox_cmd_notice2(), ratbox_cmd_notice_ops(), ratbox_cmd_part(), ratbox_cmd_pong(), ratbox_cmd_privmsg(), ratbox_cmd_privmsg2(), ratbox_cmd_quit(), ratbox_cmd_release_svshold(), ratbox_cmd_remove_akill(), ratbox_cmd_serv_notice(), ratbox_cmd_serv_privmsg(), ratbox_cmd_sgline(), ratbox_cmd_sqline(), ratbox_cmd_squit(), ratbox_cmd_svid_umode(), ratbox_cmd_svid_umode2(), ratbox_cmd_svid_umode3(), ratbox_cmd_svshold(), ratbox_cmd_svsjoin(), ratbox_cmd_svskill(), ratbox_cmd_svsmode(), ratbox_cmd_svsmode_chan(), ratbox_cmd_svsnick(), ratbox_cmd_svsnoop(), ratbox_cmd_svso(), ratbox_cmd_svspart(), ratbox_cmd_swhois(), ratbox_cmd_szline(), ratbox_cmd_topic(), ratbox_cmd_unban(), ratbox_cmd_unsgline(), ratbox_cmd_unsqline(), ratbox_cmd_unszline(), ratbox_cmd_vhost_off(), ratbox_cmd_vhost_on(), ratbox_flood_mode_check(), ratbox_set_umode(), ratbox_valid_chan(), and ratbox_valid_nick().

void moduleAddIRCDMsgs ( void   ) 
void ratbox_cmd_211 ( char *  buf  ) 

Definition at line 1375 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_219 ( char *  source,
char *  letter 
)

Definition at line 1319 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_242 ( char *  buf  ) 

Definition at line 1355 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_243 ( char *  buf  ) 

Definition at line 1365 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_250 ( char *  buf  ) 

Definition at line 1269 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_307 ( char *  buf  ) 

Definition at line 1279 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_311 ( char *  buf  ) 

Definition at line 1289 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_312 ( char *  buf  ) 

Definition at line 1299 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_317 ( char *  buf  ) 

Definition at line 1309 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_318 ( char *  source,
char *  who 
)

Definition at line 1344 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_351 ( char *  source  ) 
void ratbox_cmd_372 ( char *  source,
char *  msg 
)

Definition at line 1235 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_372_error ( char *  source  ) 

Definition at line 1240 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_375 ( char *  source  ) 

Definition at line 1247 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_376 ( char *  source  ) 

Definition at line 1253 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_391 ( char *  source,
char *  timestr 
)

Definition at line 1260 of file ratbox.c.

References send_cmd(), and ServerName.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_401 ( char *  source,
char *  who 
)

Definition at line 1334 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 889 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_bob (  ) 

Definition at line 1006 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_bot_chan_mode ( char *  nick,
char *  chan 
)
void ratbox_cmd_bot_nick ( char *  nick,
char *  user,
char *  host,
char *  real,
char *  modes 
)
void ratbox_cmd_capab (  ) 

Definition at line 962 of file ratbox.c.

References send_cmd().

Referenced by ratbox_cmd_connect().

void ratbox_cmd_chg_nick ( char *  oldnick,
char *  newnick 
)

Definition at line 1667 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_connect ( int  servernum  ) 
void ratbox_cmd_ctcp ( char *  source,
char *  dest,
char *  buf 
)

Definition at line 1818 of file ratbox.c.

References normalizeBuffer(), and send_cmd().

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_eob (  ) 

Definition at line 1088 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_global ( char *  source,
char *  buf 
)

Definition at line 514 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_global_legacy ( char *  source,
char *  fmt 
)

Definition at line 535 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1618 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1501 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 871 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_jupe ( char *  jserver,
char *  who,
char *  reason 
)
void ratbox_cmd_kick ( char *  source,
char *  chan,
char *  user,
char *  buf 
)

Definition at line 1435 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1384 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_nc_change ( User u  ) 

Definition at line 1650 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_nick ( char *  nick,
char *  name,
char *  mode 
)
void ratbox_cmd_notice ( char *  source,
char *  dest,
char *  buf 
)
void ratbox_cmd_notice2 ( char *  source,
char *  dest,
char *  msg 
)

Definition at line 467 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1453 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 1029 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_pass ( char *  pass  ) 

Definition at line 969 of file ratbox.c.

References send_cmd(), TS6SID, and UseTS6.

Referenced by ratbox_cmd_connect().

void ratbox_cmd_pong ( char *  servname,
char *  who 
)

Definition at line 1491 of file ratbox.c.

References send_cmd(), TS6SID, and UseTS6.

Referenced by anope_event_ping(), and moduleAddAnopeCmds().

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

Definition at line 478 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 492 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds(), and ratbox_cmd_notice().

void ratbox_cmd_quit ( char *  source,
char *  buf 
)

Definition at line 1477 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_release_svshold ( char *  nick  ) 

Definition at line 1607 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_remove_akill ( char *  user,
char *  host 
)

Definition at line 833 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 503 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 508 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds().

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

Definition at line 979 of file ratbox.c.

References send_cmd().

Referenced by ratbox_cmd_connect(), and ratbox_cmd_jupe().

void ratbox_cmd_sgline ( char *  mask,
char *  reason 
)

Definition at line 824 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_sqline ( char *  mask,
char *  reason 
)

Definition at line 786 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds(), ratbox_cmd_bot_nick(), and ratbox_cmd_nick().

void ratbox_cmd_squit ( char *  servname,
char *  message 
)

Definition at line 1518 of file ratbox.c.

References send_cmd().

Referenced by moduleAddAnopeCmds(), and ratbox_cmd_jupe().

void ratbox_cmd_svid_umode ( char *  nick,
time_t  ts 
)

Definition at line 1643 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_svid_umode2 ( User u,
char *  ts 
)

Definition at line 1656 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_svid_umode3 ( User u,
char *  ts 
)

Definition at line 1661 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_svinfo (  ) 

Definition at line 933 of file ratbox.c.

References send_cmd().

Referenced by ratbox_cmd_connect().

void ratbox_cmd_svsadmin ( char *  server,
int  set 
)

Definition at line 819 of file ratbox.c.

References ratbox_cmd_svsnoop().

void ratbox_cmd_svshold ( char *  nick  ) 

Definition at line 1601 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_svsinfo (  ) 

Definition at line 938 of file ratbox.c.

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

Definition at line 1704 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 901 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 919 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

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

Definition at line 1636 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1613 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_svsnoop ( char *  server,
int  set 
)

Definition at line 814 of file ratbox.c.

Referenced by moduleAddAnopeCmds(), and ratbox_cmd_svsadmin().

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

Definition at line 1624 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1709 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1714 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 809 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 1400 of file ratbox.c.

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

Referenced by ratbox_cmd_bot_chan_mode().

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

Definition at line 842 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_unban ( char *  name,
char *  nick 
)

Definition at line 1629 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_unsgline ( char *  mask  ) 

Definition at line 795 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_unsqline ( char *  user  ) 

Definition at line 862 of file ratbox.c.

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

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_unszline ( char *  mask  ) 

Definition at line 804 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

void ratbox_cmd_vhost_off ( User u  ) 

Definition at line 852 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

Definition at line 857 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

int ratbox_flood_mode_check ( char *  value  ) 

Definition at line 1767 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

int ratbox_login ( int  argc,
char **  argv 
)

Definition at line 553 of file ratbox.c.

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

Referenced by AnopeInit().

int ratbox_logout ( int  argc,
char **  argv 
)

Definition at line 560 of file ratbox.c.

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

Referenced by AnopeInit().

void ratbox_set_umode ( User user,
int  ac,
char **  av 
)
int ratbox_valid_chan ( char *  chan  ) 

Definition at line 1811 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

int ratbox_valid_nick ( char *  nick  ) 

Definition at line 1799 of file ratbox.c.

Referenced by moduleAddAnopeCmds().


Variable Documentation

Initial value:
 {
    {'i', CMODE_i, 0, NULL, NULL},
    {'k', CMODE_k, 0, get_key, cs_get_key},
    {'l', CMODE_l, CBM_MINUS_NO_ARG, get_limit, cs_get_limit},
    {'m', CMODE_m, 0, NULL, NULL},
    {'n', CMODE_n, 0, NULL, NULL},
    {'p', CMODE_p, 0, NULL, NULL},
    {'s', CMODE_s, 0, NULL, NULL},
    {'t', CMODE_t, 0, NULL, NULL},
    {0}
}

Definition at line 385 of file ratbox.c.

Definition at line 319 of file ratbox.c.

Definition at line 269 of file ratbox.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 248 of file ratbox.c.

Definition at line 398 of file ratbox.c.

Definition at line 19 of file ratbox.c.

Definition at line 118 of file ratbox.c.

unsigned long umodes[128]

Definition at line 196 of file ratbox.c.