Anope IRC Services  Version 1.8
ratbox.h
Go to the documentation of this file.
1 /* Ratbox IRCD functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  *
12  */
13 
14 #define UMODE_a 0x00000001
15 #define UMODE_C 0x00000002
16 #define UMODE_i 0x00000004
17 #define UMODE_o 0x00000008
18 #define UMODE_z 0x00000010
19 #define UMODE_w 0x00000020
20 #define UMODE_s 0x00000040
21 #define UMODE_c 0x00000080
22 #define UMODE_r 0x00000100
23 #define UMODE_k 0x00000200
24 #define UMODE_f 0x00000400
25 #define UMODE_y 0x00000800
26 #define UMODE_d 0x00001000
27 #define UMODE_n 0x00002000
28 #define UMODE_x 0x00004000
29 #define UMODE_u 0x00008000
30 #define UMODE_b 0x00010000
31 #define UMODE_l 0x00020000
32 #define UMODE_g 0x00040000
33 #define UMODE_Z 0x00080000
34 
35 #define CMODE_i 0x00000001
36 #define CMODE_m 0x00000002
37 #define CMODE_n 0x00000004
38 #define CMODE_p 0x00000008
39 #define CMODE_s 0x00000010
40 #define CMODE_t 0x00000020
41 #define CMODE_k 0x00000040
42 #define CMODE_l 0x00000080
43 
44 
45 #define DEFAULT_MLOCK CMODE_n | CMODE_t
46 
47 
48 void ratbox_set_umode(User * user, int ac, char **av);
49 void ratbox_cmd_svsnoop(char *server, int set);
50 void ratbox_cmd_remove_akill(char *user, char *host);
51 void ratbox_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
52 void ratbox_cmd_vhost_off(User * u);
53 void ratbox_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
54 void ratbox_cmd_svskill(char *source, char *user, char *buf);
55 void ratbox_cmd_svsmode(User * u, int ac, char **av);
56 void ratbox_cmd_372(char *source, char *msg);
57 void ratbox_cmd_372_error(char *source);
58 void ratbox_cmd_375(char *source);
59 void ratbox_cmd_376(char *source);
60 void ratbox_cmd_nick(char *nick, char *name, char *modes);
61 void ratbox_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
62 void ratbox_cmd_mode(char *source, char *dest, char *buf);
63 void ratbox_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
64 void ratbox_cmd_kick(char *source, char *chan, char *user, char *buf);
65 void ratbox_cmd_notice_ops(char *source, char *dest, char *buf);
66 void ratbox_cmd_notice(char *source, char *dest, char *buf);
67 void ratbox_cmd_notice2(char *source, char *dest, char *msg);
68 void ratbox_cmd_privmsg(char *source, char *dest, char *buf);
69 void ratbox_cmd_privmsg2(char *source, char *dest, char *msg);
70 void ratbox_cmd_serv_notice(char *source, char *dest, char *msg);
71 void ratbox_cmd_serv_privmsg(char *source, char *dest, char *msg);
72 void ratbox_cmd_bot_chan_mode(char *nick, char *chan);
73 void ratbox_cmd_351(char *source);
74 void ratbox_cmd_quit(char *source, char *buf);
75 void ratbox_cmd_pong(char *servname, char *who);
76 void ratbox_cmd_join(char *user, char *channel, time_t chantime);
77 void ratbox_cmd_unsqline(char *user);
78 void ratbox_cmd_invite(char *source, char *chan, char *nick);
79 void ratbox_cmd_part(char *nick, char *chan, char *buf);
80 void ratbox_cmd_391(char *source, char *timestr);
81 void ratbox_cmd_250(char *buf);
82 void ratbox_cmd_307(char *buf);
83 void ratbox_cmd_311(char *buf);
84 void ratbox_cmd_312(char *buf);
85 void ratbox_cmd_317(char *buf);
86 void ratbox_cmd_219(char *source, char *letter);
87 void ratbox_cmd_401(char *source, char *who);
88 void ratbox_cmd_318(char *source, char *who);
89 void ratbox_cmd_242(char *buf);
90 void ratbox_cmd_243(char *buf);
91 void ratbox_cmd_211(char *buf);
92 void ratbox_cmd_global(char *source, char *buf);
93 void ratbox_cmd_global_legacy(char *source, char *fmt);
94 void ratbox_cmd_sqline(char *mask, char *reason);
95 void ratbox_cmd_squit(char *servname, char *message);
96 void ratbox_cmd_svso(char *source, char *nick, char *flag);
97 void ratbox_cmd_chg_nick(char *oldnick, char *newnick);
98 void ratbox_cmd_svsnick(char *source, char *guest, time_t when);
99 void ratbox_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
100 void ratbox_cmd_connect(int servernum);
101 void ratbox_cmd_bob();
102 void ratbox_cmd_svshold(char *nick);
103 void ratbox_cmd_release_svshold(char *nick);
104 void ratbox_cmd_unsgline(char *mask);
105 void ratbox_cmd_unszline(char *mask);
106 void ratbox_cmd_szline(char *mask, char *reason, char *whom);
107 void ratbox_cmd_sgline(char *mask, char *reason);
108 void ratbox_cmd_unban(char *name, char *nick);
109 void ratbox_cmd_svsmode_chan(char *name, char *mode, char *nick);
110 void ratbox_cmd_svid_umode(char *nick, time_t ts);
111 void ratbox_cmd_nc_change(User * u);
112 void ratbox_cmd_svid_umode2(User * u, char *ts);
113 void ratbox_cmd_svid_umode3(User * u, char *ts);
114 void ratbox_cmd_eob();
115 int ratbox_flood_mode_check(char *value);
116 void ratbox_cmd_jupe(char *jserver, char *who, char *reason);
117 int ratbox_valid_nick(char *nick);
118 void ratbox_cmd_ctcp(char *source, char *dest, char *buf);
119 
120 int anope_event_encap(char *source, int ac, char **av);
121 
void ratbox_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: ratbox.c:1618
void ratbox_cmd_svid_umode2(User *u, char *ts)
Definition: ratbox.c:1656
void ratbox_cmd_eob()
Definition: ratbox.c:1088
void ratbox_cmd_jupe(char *jserver, char *who, char *reason)
Definition: ratbox.c:1782
void ratbox_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: ratbox.c:1453
void ratbox_cmd_squit(char *servname, char *message)
Definition: ratbox.c:1518
void ratbox_cmd_release_svshold(char *nick)
Definition: ratbox.c:1607
void ratbox_cmd_311(char *buf)
Definition: ratbox.c:1289
void ratbox_cmd_invite(char *source, char *chan, char *nick)
Definition: ratbox.c:1501
void ratbox_cmd_211(char *buf)
Definition: ratbox.c:1375
void ratbox_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: ratbox.c:1011
void ratbox_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: ratbox.c:1435
void ratbox_cmd_ctcp(char *source, char *dest, char *buf)
Definition: ratbox.c:1818
void ratbox_cmd_unsqline(char *user)
Definition: ratbox.c:862
void ratbox_cmd_351(char *source)
Definition: ratbox.c:1558
void ratbox_cmd_vhost_off(User *u)
Definition: ratbox.c:852
void ratbox_cmd_privmsg(char *source, char *dest, char *buf)
Definition: ratbox.c:478
void ratbox_cmd_401(char *source, char *who)
Definition: ratbox.c:1334
void ratbox_cmd_svsmode(User *u, int ac, char **av)
Definition: ratbox.c:919
void ratbox_cmd_unban(char *name, char *nick)
Definition: ratbox.c:1629
int anope_event_encap(char *source, int ac, char **av)
Definition: plexus3.c:648
void ratbox_cmd_242(char *buf)
Definition: ratbox.c:1355
void ratbox_cmd_391(char *source, char *timestr)
Definition: ratbox.c:1260
void ratbox_set_umode(User *user, int ac, char **av)
Definition: ratbox.c:151
void ratbox_cmd_svsnick(char *source, char *guest, time_t when)
Definition: ratbox.c:1613
void ratbox_cmd_bot_chan_mode(char *nick, char *chan)
Definition: ratbox.c:1462
void ratbox_cmd_svid_umode3(User *u, char *ts)
Definition: ratbox.c:1661
void ratbox_cmd_global(char *source, char *buf)
Definition: ratbox.c:514
void ratbox_cmd_307(char *buf)
Definition: ratbox.c:1279
void ratbox_cmd_bob()
Definition: ratbox.c:1006
void ratbox_cmd_part(char *nick, char *chan, char *buf)
Definition: ratbox.c:1029
void ratbox_cmd_svid_umode(char *nick, time_t ts)
Definition: ratbox.c:1643
void ratbox_cmd_svso(char *source, char *nick, char *flag)
Definition: ratbox.c:1624
int ratbox_flood_mode_check(char *value)
Definition: ratbox.c:1767
void ratbox_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: ratbox.c:889
void ratbox_cmd_global_legacy(char *source, char *fmt)
Definition: ratbox.c:535
E int servernum
Definition: extern.h:615
void ratbox_cmd_svskill(char *source, char *user, char *buf)
Definition: ratbox.c:901
void ratbox_cmd_317(char *buf)
Definition: ratbox.c:1309
void ratbox_cmd_quit(char *source, char *buf)
Definition: ratbox.c:1477
void ratbox_cmd_unsgline(char *mask)
Definition: ratbox.c:795
void ratbox_cmd_nick(char *nick, char *name, char *modes)
Definition: ratbox.c:1418
void ratbox_cmd_nc_change(User *u)
Definition: ratbox.c:1650
void ratbox_cmd_remove_akill(char *user, char *host)
Definition: ratbox.c:833
void ratbox_cmd_unszline(char *mask)
Definition: ratbox.c:804
void ratbox_cmd_szline(char *mask, char *reason, char *whom)
Definition: ratbox.c:809
void ratbox_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: ratbox.c:842
void ratbox_cmd_pong(char *servname, char *who)
Definition: ratbox.c:1491
void ratbox_cmd_chg_nick(char *oldnick, char *newnick)
Definition: ratbox.c:1667
void ratbox_cmd_notice(char *source, char *dest, char *buf)
Definition: ratbox.c:447
void ratbox_cmd_376(char *source)
Definition: ratbox.c:1253
void ratbox_cmd_join(char *user, char *channel, time_t chantime)
Definition: ratbox.c:871
void ratbox_cmd_372_error(char *source)
Definition: ratbox.c:1240
void ratbox_cmd_250(char *buf)
Definition: ratbox.c:1269
void ratbox_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: ratbox.c:503
void ratbox_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: ratbox.c:492
void ratbox_cmd_svsnoop(char *server, int set)
Definition: ratbox.c:814
void ratbox_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: ratbox.c:508
void ratbox_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: ratbox.c:1636
void ratbox_cmd_sgline(char *mask, char *reason)
Definition: ratbox.c:824
void ratbox_cmd_375(char *source)
Definition: ratbox.c:1247
void ratbox_cmd_243(char *buf)
Definition: ratbox.c:1365
int ratbox_valid_nick(char *nick)
Definition: ratbox.c:1799
void ratbox_cmd_372(char *source, char *msg)
Definition: ratbox.c:1235
void ratbox_cmd_312(char *buf)
Definition: ratbox.c:1299
void ratbox_cmd_mode(char *source, char *dest, char *buf)
Definition: ratbox.c:1384
void ratbox_cmd_318(char *source, char *who)
Definition: ratbox.c:1344
void ratbox_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: ratbox.c:857
void ratbox_cmd_219(char *source, char *letter)
Definition: ratbox.c:1319
void ratbox_cmd_svshold(char *nick)
Definition: ratbox.c:1601
void ratbox_cmd_connect(int servernum)
Definition: ratbox.c:984
void ratbox_cmd_notice2(char *source, char *dest, char *msg)
Definition: ratbox.c:467
void ratbox_cmd_sqline(char *mask, char *reason)
Definition: ratbox.c:786