Anope IRC Services  Version 1.8
Macros | Functions
ratbox.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UMODE_a   0x00000001
 
#define UMODE_C   0x00000002
 
#define UMODE_i   0x00000004
 
#define UMODE_o   0x00000008
 
#define UMODE_z   0x00000010
 
#define UMODE_w   0x00000020
 
#define UMODE_s   0x00000040
 
#define UMODE_c   0x00000080
 
#define UMODE_r   0x00000100
 
#define UMODE_k   0x00000200
 
#define UMODE_f   0x00000400
 
#define UMODE_y   0x00000800
 
#define UMODE_d   0x00001000
 
#define UMODE_n   0x00002000
 
#define UMODE_x   0x00004000
 
#define UMODE_u   0x00008000
 
#define UMODE_b   0x00010000
 
#define UMODE_l   0x00020000
 
#define UMODE_g   0x00040000
 
#define UMODE_Z   0x00080000
 
#define CMODE_i   0x00000001
 
#define CMODE_m   0x00000002
 
#define CMODE_n   0x00000004
 
#define CMODE_p   0x00000008
 
#define CMODE_s   0x00000010
 
#define CMODE_t   0x00000020
 
#define CMODE_k   0x00000040
 
#define CMODE_l   0x00000080
 
#define DEFAULT_MLOCK   CMODE_n | CMODE_t
 

Functions

void ratbox_set_umode (User *user, int ac, char **av)
 
void ratbox_cmd_svsnoop (char *server, int set)
 
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_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_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_nick (char *nick, char *name, char *modes)
 
void ratbox_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
 
void ratbox_cmd_mode (char *source, char *dest, char *buf)
 
void ratbox_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
 
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_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_bot_chan_mode (char *nick, char *chan)
 
void ratbox_cmd_351 (char *source)
 
void ratbox_cmd_quit (char *source, char *buf)
 
void ratbox_cmd_pong (char *servname, char *who)
 
void ratbox_cmd_join (char *user, char *channel, time_t chantime)
 
void ratbox_cmd_unsqline (char *user)
 
void ratbox_cmd_invite (char *source, char *chan, char *nick)
 
void ratbox_cmd_part (char *nick, char *chan, char *buf)
 
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_global (char *source, char *buf)
 
void ratbox_cmd_global_legacy (char *source, char *fmt)
 
void ratbox_cmd_sqline (char *mask, char *reason)
 
void ratbox_cmd_squit (char *servname, char *message)
 
void ratbox_cmd_svso (char *source, char *nick, char *flag)
 
void ratbox_cmd_chg_nick (char *oldnick, char *newnick)
 
void ratbox_cmd_svsnick (char *source, char *guest, time_t when)
 
void ratbox_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
 
void ratbox_cmd_connect (int servernum)
 
void ratbox_cmd_bob ()
 
void ratbox_cmd_svshold (char *nick)
 
void ratbox_cmd_release_svshold (char *nick)
 
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_sgline (char *mask, char *reason)
 
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_eob ()
 
int ratbox_flood_mode_check (char *value)
 
void ratbox_cmd_jupe (char *jserver, char *who, char *reason)
 
int ratbox_valid_nick (char *nick)
 
void ratbox_cmd_ctcp (char *source, char *dest, char *buf)
 
int anope_event_encap (char *source, int ac, char **av)
 

Macro Definition Documentation

#define CMODE_i   0x00000001

Definition at line 35 of file ratbox.h.

#define CMODE_k   0x00000040

Definition at line 41 of file ratbox.h.

#define CMODE_l   0x00000080

Definition at line 42 of file ratbox.h.

#define CMODE_m   0x00000002

Definition at line 36 of file ratbox.h.

#define CMODE_n   0x00000004

Definition at line 37 of file ratbox.h.

#define CMODE_p   0x00000008

Definition at line 38 of file ratbox.h.

#define CMODE_s   0x00000010

Definition at line 39 of file ratbox.h.

#define CMODE_t   0x00000020

Definition at line 40 of file ratbox.h.

#define DEFAULT_MLOCK   CMODE_n | CMODE_t

Definition at line 45 of file ratbox.h.

#define UMODE_a   0x00000001

Definition at line 14 of file ratbox.h.

#define UMODE_b   0x00010000

Definition at line 30 of file ratbox.h.

#define UMODE_C   0x00000002

Definition at line 15 of file ratbox.h.

#define UMODE_c   0x00000080

Definition at line 21 of file ratbox.h.

#define UMODE_d   0x00001000

Definition at line 26 of file ratbox.h.

#define UMODE_f   0x00000400

Definition at line 24 of file ratbox.h.

#define UMODE_g   0x00040000

Definition at line 32 of file ratbox.h.

#define UMODE_i   0x00000004

Definition at line 16 of file ratbox.h.

#define UMODE_k   0x00000200

Definition at line 23 of file ratbox.h.

#define UMODE_l   0x00020000

Definition at line 31 of file ratbox.h.

#define UMODE_n   0x00002000

Definition at line 27 of file ratbox.h.

#define UMODE_o   0x00000008

Definition at line 17 of file ratbox.h.

#define UMODE_r   0x00000100

Definition at line 22 of file ratbox.h.

#define UMODE_s   0x00000040

Definition at line 20 of file ratbox.h.

#define UMODE_u   0x00008000

Definition at line 29 of file ratbox.h.

#define UMODE_w   0x00000020

Definition at line 19 of file ratbox.h.

#define UMODE_x   0x00004000

Definition at line 28 of file ratbox.h.

#define UMODE_y   0x00000800

Definition at line 25 of file ratbox.h.

#define UMODE_z   0x00000010

Definition at line 18 of file ratbox.h.

#define UMODE_Z   0x00080000

Definition at line 33 of file ratbox.h.

Referenced by ultimate3_set_umode().

Function Documentation

int anope_event_encap ( char *  source,
int  ac,
char **  av 
)
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_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(), uid_::uid, user_::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(), uid_::uid, user_::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 *  modes 
)
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(), uid_::uid, user_::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_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_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_svshold ( char *  nick)

Definition at line 1601 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 *  source,
char *  guest,
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_szline ( char *  mask,
char *  reason,
char *  whom 
)

Definition at line 809 of file ratbox.c.

Referenced by moduleAddAnopeCmds().

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

void ratbox_set_umode ( User user,
int  ac,
char **  av 
)
int ratbox_valid_nick ( char *  nick)

Definition at line 1799 of file ratbox.c.

Referenced by moduleAddAnopeCmds().