Anope IRC Services  Version 1.8
Go to the documentation of this file.
1 /* Rage 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
15 #define UMODE_h 0x00000002
16 #define UMODE_i 0x00000004
17 #define UMODE_o 0x00000008
18 #define UMODE_r 0x00000010
19 #define UMODE_w 0x00000020
20 #define UMODE_A 0x00000040
21 #define UMODE_R 0x80000000
22 #define UMODE_x 0x40000000
24 #define CMODE_i 0x00000001
25 #define CMODE_m 0x00000002
26 #define CMODE_n 0x00000004
27 #define CMODE_p 0x00000008
28 #define CMODE_s 0x00000010
29 #define CMODE_t 0x00000020
30 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
31 #define CMODE_l 0x00000080
32 #define CMODE_R 0x00000100 /* Only identified users can join */
33 #define CMODE_r 0x00000200 /* Set for all registered channels */
34 #define CMODE_c 0x00000400 /* Colors can't be used */
35 #define CMODE_M 0x00000800 /* Non-regged nicks can't send messages */
36 #define CMODE_N 0x00001000
37 #define CMODE_S 0x00002000
38 #define CMODE_C 0x00004000
39 #define CMODE_A 0x00008000
40 #define CMODE_O 0x00010000 /* Only opers can join */
44 void rageircd_set_umode(User * user, int ac, char **av);
45 void rageircd_cmd_svsnoop(char *server, int set);
46 void rageircd_cmd_remove_akill(char *user, char *host);
47 void rageircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
49 void rageircd_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
50 void rageircd_cmd_svskill(char *source, char *user, char *buf);
51 void rageircd_cmd_svsmode(User * u, int ac, char **av);
52 void rageircd_cmd_372(char *source, char *msg);
53 void rageircd_cmd_372_error(char *source);
54 void rageircd_cmd_375(char *source);
55 void rageircd_cmd_376(char *source);
56 void rageircd_cmd_nick(char *nick, char *name, char *modes);
57 void rageircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
58 void rageircd_cmd_mode(char *source, char *dest, char *buf);
59 void rageircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
60 void rageircd_cmd_kick(char *source, char *chan, char *user, char *buf);
61 void rageircd_cmd_notice_ops(char *source, char *dest, char *buf);
62 void rageircd_cmd_notice(char *source, char *dest, char *buf);
63 void rageircd_cmd_notice2(char *source, char *dest, char *msg);
64 void rageircd_cmd_privmsg(char *source, char *dest, char *buf);
65 void rageircd_cmd_privmsg2(char *source, char *dest, char *msg);
66 void rageircd_cmd_serv_notice(char *source, char *dest, char *msg);
67 void rageircd_cmd_serv_privmsg(char *source, char *dest, char *msg);
68 void rageircd_cmd_bot_chan_mode(char *nick, char *chan);
69 void rageircd_cmd_351(char *source);
70 void rageircd_cmd_quit(char *source, char *buf);
71 void rageircd_cmd_pong(char *servname, char *who);
72 void rageircd_cmd_join(char *user, char *channel, time_t chantime);
73 void rageircd_cmd_unsqline(char *user);
74 void rageircd_cmd_invite(char *source, char *chan, char *nick);
75 void rageircd_cmd_part(char *nick, char *chan, char *buf);
76 void rageircd_cmd_391(char *source, char *timestr);
77 void rageircd_cmd_250(char *buf);
78 void rageircd_cmd_307(char *buf);
79 void rageircd_cmd_311(char *buf);
80 void rageircd_cmd_312(char *buf);
81 void rageircd_cmd_317(char *buf);
82 void rageircd_cmd_219(char *source, char *letter);
83 void rageircd_cmd_401(char *source, char *who);
84 void rageircd_cmd_318(char *source, char *who);
85 void rageircd_cmd_242(char *buf);
86 void rageircd_cmd_243(char *buf);
87 void rageircd_cmd_211(char *buf);
88 void rageircd_cmd_global(char *source, char *buf);
89 void rageircd_cmd_global_legacy(char *source, char *fmt);
90 void rageircd_cmd_sqline(char *mask, char *reason);
91 void rageircd_cmd_squit(char *servname, char *message);
92 void rageircd_cmd_svso(char *source, char *nick, char *flag);
93 void rageircd_cmd_chg_nick(char *oldnick, char *newnick);
94 void rageircd_cmd_svsnick(char *source, char *guest, time_t when);
95 void rageircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
97 void rageircd_cmd_bob();
98 void rageircd_cmd_svshold(char *nick);
99 void rageircd_cmd_release_svshold(char *nick);
100 void rageircd_cmd_unsgline(char *mask);
101 void rageircd_cmd_unszline(char *mask);
102 void rageircd_cmd_szline(char *mask, char *reason, char *whom);
103 void rageircd_cmd_sgline(char *mask, char *reason);
104 void rageircd_cmd_unban(char *name, char *nick);
105 void rageircd_cmd_svsmode_chan(char *name, char *mode, char *nick);
106 void rageircd_cmd_svid_umode(char *nick, time_t ts);
107 void rageircd_cmd_nc_change(User * u);
108 void rageircd_cmd_svid_umode2(User * u, char *ts);
109 void rageircd_cmd_svid_umode3(User * u, char *ts);
110 void rageircd_cmd_eob();
111 int rageircd_flood_mode_check(char *value);
112 void rageircd_cmd_jupe(char *jserver, char *who, char *reason);
113 int rageircd_valid_nick(char *nick);
114 void rageircd_cmd_ctcp(char *source, char *dest, char *buf);
int rageircd_flood_mode_check(char *value)
Definition: rageircd.c:1503
void rageircd_cmd_pong(char *servname, char *who)
Definition: rageircd.c:733
void rageircd_cmd_svsnoop(char *server, int set)
Definition: rageircd.c:627
void rageircd_cmd_317(char *buf)
Definition: rageircd.c:1058
void rageircd_cmd_chg_nick(char *oldnick, char *newnick)
Definition: rageircd.c:1408
void rageircd_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: rageircd.c:967
void rageircd_cmd_nc_change(User *u)
Definition: rageircd.c:1387
void rageircd_cmd_eob()
Definition: rageircd.c:1508
void rageircd_cmd_unban(char *name, char *nick)
Definition: rageircd.c:1205
void rageircd_cmd_bob()
Definition: rageircd.c:790
void rageircd_cmd_351(char *source)
Definition: rageircd.c:942
void rageircd_cmd_vhost_off(User *u)
Definition: rageircd.c:670
void rageircd_cmd_311(char *buf)
Definition: rageircd.c:1038
void rageircd_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: rageircd.c:700
void rageircd_set_umode(User *user, int ac, char **av)
Definition: rageircd.c:795
void rageircd_cmd_svid_umode2(User *u, char *ts)
Definition: rageircd.c:1393
void rageircd_cmd_318(char *source, char *who)
Definition: rageircd.c:1092
void rageircd_cmd_sqline(char *mask, char *reason)
Definition: rageircd.c:603
void rageircd_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: rageircd.c:1363
void rageircd_cmd_svshold(char *nick)
Definition: rageircd.c:1343
void rageircd_cmd_ctcp(char *source, char *dest, char *buf)
Definition: rageircd.c:1553
void rageircd_cmd_svid_umode(char *nick, time_t ts)
Definition: rageircd.c:1379
void rageircd_cmd_svso(char *source, char *nick, char *flag)
Definition: rageircd.c:1371
void rageircd_cmd_connect(int servernum)
Definition: rageircd.c:765
void rageircd_cmd_375(char *source)
Definition: rageircd.c:987
void rageircd_cmd_global(char *source, char *buf)
Definition: rageircd.c:864
void rageircd_cmd_invite(char *source, char *chan, char *nick)
Definition: rageircd.c:999
void rageircd_cmd_391(char *source, char *timestr)
Definition: rageircd.c:1009
void rageircd_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: rageircd.c:684
void rageircd_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: rageircd.c:910
void rageircd_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: rageircd.c:663
void rageircd_cmd_372(char *source, char *msg)
Definition: rageircd.c:976
void rageircd_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: rageircd.c:1213
void rageircd_cmd_219(char *source, char *letter)
Definition: rageircd.c:1068
void rageircd_cmd_401(char *source, char *who)
Definition: rageircd.c:1083
void rageircd_cmd_376(char *source)
Definition: rageircd.c:993
void rageircd_cmd_sgline(char *mask, char *reason)
Definition: rageircd.c:637
void rageircd_cmd_svsmode(User *u, int ac, char **av)
Definition: rageircd.c:720
E int servernum
Definition: extern.h:615
void rageircd_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: rageircd.c:873
void rageircd_cmd_bot_chan_mode(char *nick, char *chan)
Definition: rageircd.c:1222
void rageircd_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: rageircd.c:1195
void rageircd_cmd_szline(char *mask, char *reason, char *whom)
Definition: rageircd.c:622
void rageircd_cmd_notice2(char *source, char *dest, char *msg)
Definition: rageircd.c:896
void rageircd_cmd_remove_akill(char *user, char *host)
Definition: rageircd.c:643
int rageircd_valid_nick(char *nick)
Definition: rageircd.c:1536
void rageircd_cmd_307(char *buf)
Definition: rageircd.c:1028
void rageircd_cmd_mode(char *source, char *dest, char *buf)
Definition: rageircd.c:949
void rageircd_cmd_notice(char *source, char *dest, char *buf)
Definition: rageircd.c:883
void rageircd_cmd_join(char *user, char *channel, time_t chantime)
Definition: rageircd.c:695
void rageircd_cmd_svsnick(char *source, char *guest, time_t when)
Definition: rageircd.c:1355
void rageircd_cmd_global_legacy(char *source, char *fmt)
Definition: rageircd.c:1527
void rageircd_cmd_jupe(char *jserver, char *who, char *reason)
Definition: rageircd.c:1513
void rageircd_cmd_312(char *buf)
Definition: rageircd.c:1048
void rageircd_cmd_unszline(char *mask)
Definition: rageircd.c:617
void rageircd_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: rageircd.c:915
void rageircd_cmd_release_svshold(char *nick)
Definition: rageircd.c:1350
void rageircd_cmd_242(char *buf)
Definition: rageircd.c:1102
void rageircd_cmd_unsqline(char *user)
Definition: rageircd.c:690
void rageircd_cmd_svid_umode3(User *u, char *ts)
Definition: rageircd.c:1398
void rageircd_cmd_privmsg(char *source, char *dest, char *buf)
Definition: rageircd.c:901
void rageircd_cmd_211(char *buf)
Definition: rageircd.c:1122
void rageircd_cmd_372_error(char *source)
Definition: rageircd.c:981
void rageircd_cmd_unsgline(char *mask)
Definition: rageircd.c:612
void rageircd_cmd_250(char *buf)
Definition: rageircd.c:1018
void rageircd_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: rageircd.c:920
void rageircd_cmd_nick(char *nick, char *name, char *modes)
Definition: rageircd.c:1131
void rageircd_cmd_243(char *buf)
Definition: rageircd.c:1112
void rageircd_cmd_part(char *nick, char *chan, char *buf)
Definition: rageircd.c:650
void rageircd_cmd_svskill(char *source, char *user, char *buf)
Definition: rageircd.c:707
void rageircd_cmd_quit(char *source, char *buf)
Definition: rageircd.c:1186
void rageircd_cmd_squit(char *servname, char *message)
Definition: rageircd.c:727