Anope IRC Services  Version 1.8
Go to the documentation of this file.
1 /* Ratbox IRCD functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at
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  */
14 #define UMODE_a 0x00000001 /* umode a - admin */
15 #define UMODE_g 0x00000002 /* umode g - caller ID */
16 #define UMODE_i 0x00000004 /* umode i - invisible */
17 #define UMODE_o 0x00000008 /* umode o - operator */
18 #define UMODE_z 0x00000010 /* umode u - operwall */
19 #define UMODE_w 0x00000020 /* umode w - wallops */
20 #define UMODE_s 0x00000040 /* umode s - server notices */
21 #define UMODE_Q 0x00000080 /* umode Q - block forwarding */
22 #define UMODE_R 0x00000200 /* umode R - reject messages from unauthenticated users */
23 #define UMODE_S 0x00000400 /* umode S - network service */
24 #define UMODE_l 0x00020000 /* umode l - locops */
27 #define CMODE_i 0x00000001
28 #define CMODE_m 0x00000002
29 #define CMODE_n 0x00000004
30 #define CMODE_p 0x00000008
31 #define CMODE_s 0x00000010
32 #define CMODE_t 0x00000020
33 #define CMODE_k 0x00000040
34 #define CMODE_l 0x00000080
35 #define CMODE_f 0x00000100
36 #define CMODE_c 0x00000200
37 #define CMODE_r 0x00000400
38 #define CMODE_P 0x00000800
39 #define CMODE_g 0x00001000
40 #define CMODE_z 0x00002000
41 #define CMODE_j 0x00004000
42 #define CMODE_F 0x00008000
43 #define CMODE_L 0x00010000
44 #define CMODE_Q 0x00020000
49 void charybdis_set_umode(User * user, int ac, char **av);
50 void charybdis_cmd_svsnoop(char *server, int set);
51 void charybdis_cmd_remove_akill(char *user, char *host);
52 void charybdis_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
54 void charybdis_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
55 void charybdis_cmd_svskill(char *source, char *user, char *buf);
56 void charybdis_cmd_svsmode(User * u, int ac, char **av);
57 void charybdis_cmd_372(char *source, char *msg);
58 void charybdis_cmd_372_error(char *source);
59 void charybdis_cmd_375(char *source);
60 void charybdis_cmd_376(char *source);
61 void charybdis_cmd_nick(char *nick, char *name, char *modes);
62 void charybdis_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
63 void charybdis_cmd_mode(char *source, char *dest, char *buf);
64 void charybdis_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
65 void charybdis_cmd_kick(char *source, char *chan, char *user, char *buf);
66 void charybdis_cmd_notice_ops(char *source, char *dest, char *buf);
67 void charybdis_cmd_notice(char *source, char *dest, char *buf);
68 void charybdis_cmd_notice2(char *source, char *dest, char *msg);
69 void charybdis_cmd_privmsg(char *source, char *dest, char *buf);
70 void charybdis_cmd_privmsg2(char *source, char *dest, char *msg);
71 void charybdis_cmd_serv_notice(char *source, char *dest, char *msg);
72 void charybdis_cmd_serv_privmsg(char *source, char *dest, char *msg);
73 void charybdis_cmd_bot_chan_mode(char *nick, char *chan);
74 void charybdis_cmd_351(char *source);
75 void charybdis_cmd_quit(char *source, char *buf);
76 void charybdis_cmd_pong(char *servname, char *who);
77 void charybdis_cmd_join(char *user, char *channel, time_t chantime);
78 void charybdis_cmd_unsqline(char *user);
79 void charybdis_cmd_invite(char *source, char *chan, char *nick);
80 void charybdis_cmd_part(char *nick, char *chan, char *buf);
81 void charybdis_cmd_391(char *source, char *timestr);
82 void charybdis_cmd_250(char *buf);
83 void charybdis_cmd_307(char *buf);
84 void charybdis_cmd_311(char *buf);
85 void charybdis_cmd_312(char *buf);
86 void charybdis_cmd_317(char *buf);
87 void charybdis_cmd_219(char *source, char *letter);
88 void charybdis_cmd_401(char *source, char *who);
89 void charybdis_cmd_318(char *source, char *who);
90 void charybdis_cmd_242(char *buf);
91 void charybdis_cmd_243(char *buf);
92 void charybdis_cmd_211(char *buf);
93 void charybdis_cmd_global(char *source, char *buf);
94 void charybdis_cmd_global_legacy(char *source, char *fmt);
95 void charybdis_cmd_sqline(char *mask, char *reason);
96 void charybdis_cmd_squit(char *servname, char *message);
97 void charybdis_cmd_svso(char *source, char *nick, char *flag);
98 void charybdis_cmd_chg_nick(char *oldnick, char *newnick);
99 void charybdis_cmd_svsnick(char *source, char *guest, time_t when);
100 void charybdis_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
102 void charybdis_cmd_bob();
103 void charybdis_cmd_svshold(char *nick);
104 void charybdis_cmd_release_svshold(char *nick);
105 void charybdis_cmd_unsgline(char *mask);
106 void charybdis_cmd_unszline(char *mask);
107 void charybdis_cmd_szline(char *mask, char *reason, char *whom);
108 void charybdis_cmd_sgline(char *mask, char *reason);
109 void charybdis_cmd_unban(char *name, char *nick);
110 void charybdis_cmd_svsmode_chan(char *name, char *mode, char *nick);
111 void charybdis_cmd_svid_umode(char *nick, time_t ts);
112 void charybdis_cmd_nc_change(User * u);
113 void charybdis_cmd_svid_umode2(User * u, char *ts);
114 void charybdis_cmd_svid_umode3(User * u, char *ts);
115 void charybdis_cmd_eob();
116 int charybdis_flood_mode_check(char *value);
117 void charybdis_cmd_jupe(char *jserver, char *who, char *reason);
118 int charybdis_valid_nick(char *nick);
119 void charybdis_cmd_ctcp(char *source, char *dest, char *buf);
void charybdis_cmd_svsnoop(char *server, int set)
Definition: charybdis.c:853
void charybdis_cmd_376(char *source)
Definition: charybdis.c:1270
void charybdis_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: charybdis.c:1452
void charybdis_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: charybdis.c:514
void charybdis_cmd_243(char *buf)
Definition: charybdis.c:1382
void charybdis_cmd_eob()
Definition: charybdis.c:1134
void charybdis_cmd_chg_nick(char *oldnick, char *newnick)
Definition: charybdis.c:1696
void charybdis_cmd_unsqline(char *user)
Definition: charybdis.c:906
void charybdis_cmd_219(char *source, char *letter)
Definition: charybdis.c:1336
void charybdis_cmd_211(char *buf)
Definition: charybdis.c:1392
void charybdis_cmd_375(char *source)
Definition: charybdis.c:1264
void charybdis_cmd_release_svshold(char *nick)
Definition: charybdis.c:1626
void charybdis_cmd_szline(char *mask, char *reason, char *whom)
Definition: charybdis.c:848
void charybdis_cmd_join(char *user, char *channel, time_t chantime)
Definition: charybdis.c:915
void charybdis_cmd_unszline(char *mask)
Definition: charybdis.c:843
void charybdis_cmd_372(char *source, char *msg)
Definition: charybdis.c:1252
void charybdis_cmd_312(char *buf)
Definition: charybdis.c:1316
void charybdis_cmd_notice2(char *source, char *dest, char *msg)
Definition: charybdis.c:478
void charybdis_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: charybdis.c:933
void charybdis_cmd_jupe(char *jserver, char *who, char *reason)
Definition: charybdis.c:1822
void charybdis_cmd_unsgline(char *mask)
Definition: charybdis.c:834
void charybdis_cmd_nick(char *nick, char *name, char *modes)
Definition: charybdis.c:1435
void charybdis_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: charybdis.c:1057
void charybdis_cmd_remove_akill(char *user, char *host)
Definition: charybdis.c:872
void charybdis_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: charybdis.c:503
void charybdis_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: charybdis.c:519
void charybdis_cmd_svid_umode(char *nick, time_t ts)
Definition: charybdis.c:1672
void charybdis_cmd_global(char *source, char *buf)
Definition: charybdis.c:525
void charybdis_cmd_squit(char *servname, char *message)
Definition: charybdis.c:1538
void charybdis_cmd_svshold(char *nick)
Definition: charybdis.c:1620
void charybdis_cmd_connect(int servernum)
Definition: charybdis.c:1030
void charybdis_cmd_318(char *source, char *who)
Definition: charybdis.c:1361
void charybdis_cmd_invite(char *source, char *chan, char *nick)
Definition: charybdis.c:1521
void charybdis_cmd_sqline(char *mask, char *reason)
Definition: charybdis.c:825
void charybdis_cmd_bot_chan_mode(char *nick, char *chan)
Definition: charybdis.c:1482
void charybdis_cmd_391(char *source, char *timestr)
Definition: charybdis.c:1277
void charybdis_cmd_250(char *buf)
Definition: charybdis.c:1286
void charybdis_cmd_global_legacy(char *source, char *fmt)
Definition: charybdis.c:546
E int servernum
Definition: extern.h:615
void charybdis_cmd_mode(char *source, char *dest, char *buf)
Definition: charybdis.c:1401
void charybdis_cmd_ctcp(char *source, char *dest, char *buf)
Definition: charybdis.c:1858
void charybdis_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: charybdis.c:1665
void charybdis_cmd_svskill(char *source, char *user, char *buf)
Definition: charybdis.c:945
void charybdis_cmd_svso(char *source, char *nick, char *flag)
Definition: charybdis.c:1653
void charybdis_cmd_sgline(char *mask, char *reason)
Definition: charybdis.c:863
void charybdis_cmd_372_error(char *source)
Definition: charybdis.c:1257
int charybdis_valid_nick(char *nick)
Definition: charybdis.c:1839
void charybdis_cmd_quit(char *source, char *buf)
Definition: charybdis.c:1496
void charybdis_cmd_svsnick(char *source, char *guest, time_t when)
Definition: charybdis.c:1632
void charybdis_cmd_351(char *source)
Definition: charybdis.c:1578
void charybdis_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: charybdis.c:1470
void charybdis_set_umode(User *user, int ac, char **av)
Definition: charybdis.c:152
void charybdis_cmd_privmsg(char *source, char *dest, char *buf)
Definition: charybdis.c:489
void charybdis_cmd_311(char *buf)
Definition: charybdis.c:1306
void charybdis_cmd_bob()
Definition: charybdis.c:1052
void charybdis_cmd_svid_umode3(User *u, char *ts)
Definition: charybdis.c:1690
void charybdis_cmd_nc_change(User *u)
Definition: charybdis.c:1679
void charybdis_cmd_401(char *source, char *who)
Definition: charybdis.c:1351
void charybdis_cmd_307(char *buf)
Definition: charybdis.c:1296
void charybdis_cmd_317(char *buf)
Definition: charybdis.c:1326
void charybdis_cmd_svsmode(User *u, int ac, char **av)
Definition: charybdis.c:963
void charybdis_cmd_pong(char *servname, char *who)
Definition: charybdis.c:1510
void charybdis_cmd_unban(char *name, char *nick)
Definition: charybdis.c:1658
void charybdis_cmd_svid_umode2(User *u, char *ts)
Definition: charybdis.c:1685
void charybdis_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: charybdis.c:1647
void charybdis_cmd_notice(char *source, char *dest, char *buf)
Definition: charybdis.c:458
void charybdis_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: charybdis.c:884
void charybdis_cmd_part(char *nick, char *chan, char *buf)
Definition: charybdis.c:1075
void charybdis_cmd_vhost_off(User *u)
Definition: charybdis.c:894
void charybdis_cmd_242(char *buf)
Definition: charybdis.c:1372
void charybdis_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: charybdis.c:900
int charybdis_flood_mode_check(char *value)
Definition: charybdis.c:1796