Anope IRC Services  Version 1.8
Macros | Functions
charybdis.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 /* umode a - admin */
 
#define UMODE_g   0x00000002 /* umode g - caller ID */
 
#define UMODE_i   0x00000004 /* umode i - invisible */
 
#define UMODE_o   0x00000008 /* umode o - operator */
 
#define UMODE_z   0x00000010 /* umode u - operwall */
 
#define UMODE_w   0x00000020 /* umode w - wallops */
 
#define UMODE_s   0x00000040 /* umode s - server notices */
 
#define UMODE_Q   0x00000080 /* umode Q - block forwarding */
 
#define UMODE_R   0x00000200 /* umode R - reject messages from unauthenticated users */
 
#define UMODE_S   0x00000400 /* umode S - network service */
 
#define UMODE_l   0x00020000 /* umode l - locops */
 
#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 CMODE_f   0x00000100
 
#define CMODE_c   0x00000200
 
#define CMODE_r   0x00000400
 
#define CMODE_P   0x00000800
 
#define CMODE_g   0x00001000
 
#define CMODE_z   0x00002000
 
#define CMODE_j   0x00004000
 
#define CMODE_F   0x00008000
 
#define CMODE_L   0x00010000
 
#define CMODE_Q   0x00020000
 
#define DEFAULT_MLOCK   CMODE_n | CMODE_t
 

Functions

void charybdis_set_umode (User *user, int ac, char **av)
 
void charybdis_cmd_svsnoop (char *server, int set)
 
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_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_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_nick (char *nick, char *name, char *modes)
 
void charybdis_cmd_guest_nick (char *nick, char *user, char *host, char *real, char *modes)
 
void charybdis_cmd_mode (char *source, char *dest, char *buf)
 
void charybdis_cmd_bot_nick (char *nick, char *user, char *host, char *real, char *modes)
 
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_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_bot_chan_mode (char *nick, char *chan)
 
void charybdis_cmd_351 (char *source)
 
void charybdis_cmd_quit (char *source, char *buf)
 
void charybdis_cmd_pong (char *servname, char *who)
 
void charybdis_cmd_join (char *user, char *channel, time_t chantime)
 
void charybdis_cmd_unsqline (char *user)
 
void charybdis_cmd_invite (char *source, char *chan, char *nick)
 
void charybdis_cmd_part (char *nick, char *chan, char *buf)
 
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_global (char *source, char *buf)
 
void charybdis_cmd_global_legacy (char *source, char *fmt)
 
void charybdis_cmd_sqline (char *mask, char *reason)
 
void charybdis_cmd_squit (char *servname, char *message)
 
void charybdis_cmd_svso (char *source, char *nick, char *flag)
 
void charybdis_cmd_chg_nick (char *oldnick, char *newnick)
 
void charybdis_cmd_svsnick (char *source, char *guest, time_t when)
 
void charybdis_cmd_vhost_on (char *nick, char *vIdent, char *vhost)
 
void charybdis_cmd_connect (int servernum)
 
void charybdis_cmd_bob ()
 
void charybdis_cmd_svshold (char *nick)
 
void charybdis_cmd_release_svshold (char *nick)
 
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_sgline (char *mask, char *reason)
 
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_eob ()
 
int charybdis_flood_mode_check (char *value)
 
void charybdis_cmd_jupe (char *jserver, char *who, char *reason)
 
int charybdis_valid_nick (char *nick)
 
void charybdis_cmd_ctcp (char *source, char *dest, char *buf)
 

Macro Definition Documentation

#define CMODE_c   0x00000200

Definition at line 36 of file charybdis.h.

#define CMODE_f   0x00000100

Definition at line 35 of file charybdis.h.

Referenced by anope_event_capab().

#define CMODE_F   0x00008000

Definition at line 42 of file charybdis.h.

Referenced by anope_event_capab().

#define CMODE_g   0x00001000

Definition at line 39 of file charybdis.h.

Referenced by anope_event_capab().

#define CMODE_i   0x00000001

Definition at line 27 of file charybdis.h.

#define CMODE_j   0x00004000

Definition at line 41 of file charybdis.h.

#define CMODE_k   0x00000040

Definition at line 33 of file charybdis.h.

#define CMODE_l   0x00000080

Definition at line 34 of file charybdis.h.

#define CMODE_L   0x00010000

Definition at line 43 of file charybdis.h.

Referenced by anope_event_capab().

#define CMODE_m   0x00000002

Definition at line 28 of file charybdis.h.

#define CMODE_n   0x00000004

Definition at line 29 of file charybdis.h.

#define CMODE_p   0x00000008

Definition at line 30 of file charybdis.h.

#define CMODE_P   0x00000800

Definition at line 38 of file charybdis.h.

Referenced by anope_event_capab(), and AnopeInit().

#define CMODE_Q   0x00020000

Definition at line 44 of file charybdis.h.

Referenced by anope_event_capab().

#define CMODE_r   0x00000400

Definition at line 37 of file charybdis.h.

#define CMODE_s   0x00000010

Definition at line 31 of file charybdis.h.

#define CMODE_t   0x00000020

Definition at line 32 of file charybdis.h.

#define CMODE_z   0x00002000

Definition at line 40 of file charybdis.h.

Referenced by anope_event_capab(), and AnopeInit().

#define DEFAULT_MLOCK   CMODE_n | CMODE_t

Definition at line 46 of file charybdis.h.

#define UMODE_a   0x00000001 /* umode a - admin */

Definition at line 14 of file charybdis.h.

#define UMODE_g   0x00000002 /* umode g - caller ID */

Definition at line 15 of file charybdis.h.

#define UMODE_i   0x00000004 /* umode i - invisible */

Definition at line 16 of file charybdis.h.

#define UMODE_l   0x00020000 /* umode l - locops */

Definition at line 24 of file charybdis.h.

#define UMODE_o   0x00000008 /* umode o - operator */

Definition at line 17 of file charybdis.h.

#define UMODE_Q   0x00000080 /* umode Q - block forwarding */

Definition at line 21 of file charybdis.h.

#define UMODE_R   0x00000200 /* umode R - reject messages from unauthenticated users */

Definition at line 22 of file charybdis.h.

#define UMODE_s   0x00000040 /* umode s - server notices */

Definition at line 20 of file charybdis.h.

#define UMODE_S   0x00000400 /* umode S - network service */

Definition at line 23 of file charybdis.h.

#define UMODE_w   0x00000020 /* umode w - wallops */

Definition at line 19 of file charybdis.h.

#define UMODE_z   0x00000010 /* umode u - operwall */

Definition at line 18 of file charybdis.h.

Function Documentation

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_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 *  modes 
)
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_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_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_svshold ( char *  nick)

Definition at line 1620 of file charybdis.c.

References send_cmd().

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

Definition at line 848 of file charybdis.c.

Referenced by moduleAddAnopeCmds().

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

void charybdis_set_umode ( User user,
int  ac,
char **  av 
)
int charybdis_valid_nick ( char *  nick)

Definition at line 1839 of file charybdis.c.

Referenced by moduleAddAnopeCmds().