Anope IRC Services  Version 1.8
Go to the documentation of this file.
1 /* PlexusIRCD 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_i 0x00000001
15 #define UMODE_o 0x00000002
16 #define UMODE_w 0x00000004
17 #define UMODE_a 0x00000008
18 #define UMODE_x 0x00000010
19 #define UMODE_S 0x00000020
20 #define UMODE_r 0x00000040
21 #define UMODE_R 0x00000080
22 #define UMODE_N 0x00000100
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_M 0x00001000
33 #define CMODE_c 0x00002000
34 #define CMODE_O 0x00004000
35 #define CMODE_R 0x00008000
36 #define CMODE_N 0x00010000
37 #define CMODE_B 0x00020000
38 #define CMODE_S 0x00040000
39 #define CMODE_z 0x00080000
43 void plexus_set_umode(User * user, int ac, char **av);
44 void plexus_cmd_svsnoop(char *server, int set);
45 void plexus_cmd_remove_akill(char *user, char *host);
46 void plexus_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
47 void plexus_cmd_vhost_off(User * u);
48 void plexus_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
49 void plexus_cmd_svskill(char *source, char *user, char *buf);
50 void plexus_cmd_svsmode(User * u, int ac, char **av);
51 void plexus_cmd_372(char *source, char *msg);
52 void plexus_cmd_372_error(char *source);
53 void plexus_cmd_375(char *source);
54 void plexus_cmd_376(char *source);
55 void plexus_cmd_nick(char *nick, char *name, char *modes);
56 void plexus_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
57 void plexus_cmd_mode(char *source, char *dest, char *buf);
58 void plexus_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
59 void plexus_cmd_kick(char *source, char *chan, char *user, char *buf);
60 void plexus_cmd_notice_ops(char *source, char *dest, char *buf);
61 void plexus_cmd_notice(char *source, char *dest, char *buf);
62 void plexus_cmd_notice2(char *source, char *dest, char *msg);
63 void plexus_cmd_privmsg(char *source, char *dest, char *buf);
64 void plexus_cmd_privmsg2(char *source, char *dest, char *msg);
65 void plexus_cmd_serv_notice(char *source, char *dest, char *msg);
66 void plexus_cmd_serv_privmsg(char *source, char *dest, char *msg);
67 void plexus_cmd_bot_chan_mode(char *nick, char *chan);
68 void plexus_cmd_351(char *source);
69 void plexus_cmd_quit(char *source, char *buf);
70 void plexus_cmd_pong(char *servname, char *who);
71 void plexus_cmd_join(char *user, char *channel, time_t chantime);
72 void plexus_cmd_unsqline(char *user);
73 void plexus_cmd_invite(char *source, char *chan, char *nick);
74 void plexus_cmd_part(char *nick, char *chan, char *buf);
75 void plexus_cmd_391(char *source, char *timestr);
76 void plexus_cmd_250(char *buf);
77 void plexus_cmd_307(char *buf);
78 void plexus_cmd_311(char *buf);
79 void plexus_cmd_312(char *buf);
80 void plexus_cmd_317(char *buf);
81 void plexus_cmd_219(char *source, char *letter);
82 void plexus_cmd_401(char *source, char *who);
83 void plexus_cmd_318(char *source, char *who);
84 void plexus_cmd_242(char *buf);
85 void plexus_cmd_243(char *buf);
86 void plexus_cmd_211(char *buf);
87 void plexus_cmd_global(char *source, char *buf);
88 void plexus_cmd_global_legacy(char *source, char *fmt);
89 void plexus_cmd_sqline(char *mask, char *reason);
90 void plexus_cmd_squit(char *servname, char *message);
91 void plexus_cmd_svso(char *source, char *nick, char *flag);
92 void plexus_cmd_chg_nick(char *oldnick, char *newnick);
93 void plexus_cmd_svsnick(char *source, char *guest, time_t when);
94 void plexus_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
96 void plexus_cmd_bob();
97 void plexus_cmd_svshold(char *nick);
98 void plexus_cmd_release_svshold(char *nick);
99 void plexus_cmd_unsgline(char *mask);
100 void plexus_cmd_unszline(char *mask);
101 void plexus_cmd_szline(char *mask, char *reason, char *whom);
102 void plexus_cmd_sgline(char *mask, char *reason);
103 void plexus_cmd_unban(char *name, char *nick);
104 void plexus_cmd_svsmode_chan(char *name, char *mode, char *nick);
105 void plexus_cmd_svid_umode(char *nick, time_t ts);
106 void plexus_cmd_nc_change(User * u);
107 void plexus_cmd_svid_umode2(User * u, char *ts);
108 void plexus_cmd_svid_umode3(User * u, char *ts);
109 void plexus_cmd_eob();
110 int plexus_flood_mode_check(char *value);
111 void plexus_cmd_jupe(char *jserver, char *who, char *reason);
112 int plexus_valid_nick(char *nick);
113 void plexus_cmd_ctcp(char *source, char *dest, char *buf);
void plexus_cmd_nick(char *nick, char *name, char *modes)
Definition: plexus2.c:1381
void plexus_cmd_pong(char *servname, char *who)
Definition: plexus2.c:1436
void plexus_cmd_svid_umode(char *nick, time_t ts)
Definition: plexus2.c:1591
void plexus_cmd_squit(char *servname, char *message)
Definition: plexus2.c:1455
void plexus_cmd_chg_nick(char *oldnick, char *newnick)
Definition: plexus2.c:1626
void plexus_cmd_376(char *source)
Definition: plexus2.c:1215
void plexus_cmd_svskill(char *source, char *user, char *buf)
Definition: plexus2.c:896
void plexus_cmd_szline(char *mask, char *reason, char *whom)
Definition: plexus2.c:803
void plexus_cmd_notice(char *source, char *dest, char *buf)
Definition: plexus2.c:540
void plexus_cmd_unsqline(char *user)
Definition: plexus2.c:866
void plexus_cmd_jupe(char *jserver, char *who, char *reason)
Definition: plexus2.c:1714
void plexus_cmd_mode(char *source, char *dest, char *buf)
Definition: plexus2.c:1370
void plexus_cmd_391(char *source, char *timestr)
Definition: plexus2.c:1222
void plexus_cmd_svsnoop(char *server, int set)
Definition: plexus2.c:809
int plexus_valid_nick(char *nick)
Definition: plexus2.c:1732
void plexus_cmd_312(char *buf)
Definition: plexus2.c:1269
void plexus_cmd_svid_umode2(User *u, char *ts)
Definition: plexus2.c:1606
void plexus_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: plexus2.c:581
void plexus_cmd_219(char *source, char *letter)
Definition: plexus2.c:1293
void plexus_cmd_global_legacy(char *source, char *fmt)
Definition: plexus2.c:606
void plexus_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: plexus2.c:1561
void plexus_cmd_311(char *buf)
Definition: plexus2.c:1257
void plexus_cmd_ctcp(char *source, char *dest, char *buf)
Definition: plexus2.c:1751
void plexus_cmd_372_error(char *source)
Definition: plexus2.c:1201
void plexus_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: plexus2.c:888
void plexus_cmd_unsgline(char *mask)
Definition: plexus2.c:791
void plexus_cmd_svsmode(User *u, int ac, char **av)
Definition: plexus2.c:912
void plexus_cmd_privmsg(char *source, char *dest, char *buf)
Definition: plexus2.c:564
void plexus_cmd_svshold(char *nick)
Definition: plexus2.c:1537
void plexus_cmd_375(char *source)
Definition: plexus2.c:1208
void plexus_cmd_global(char *source, char *buf)
Definition: plexus2.c:594
void plexus_cmd_invite(char *source, char *chan, char *nick)
Definition: plexus2.c:1443
void plexus_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: plexus2.c:1404
void plexus_cmd_svid_umode3(User *u, char *ts)
Definition: plexus2.c:1619
void plexus_cmd_eob()
Definition: plexus2.c:1109
void plexus_cmd_401(char *source, char *who)
Definition: plexus2.c:1312
E int servernum
Definition: extern.h:615
void plexus_cmd_vhost_off(User *u)
Definition: plexus2.c:841
void plexus_cmd_318(char *source, char *who)
Definition: plexus2.c:1323
int plexus_flood_mode_check(char *value)
Definition: plexus2.c:1695
void plexus_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: plexus2.c:575
void plexus_cmd_connect(int servernum)
Definition: plexus2.c:977
void plexus_set_umode(User *user, int ac, char **av)
Definition: plexus2.c:152
void plexus_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: plexus2.c:1391
void plexus_cmd_242(char *buf)
Definition: plexus2.c:1335
void plexus_cmd_nc_change(User *u)
Definition: plexus2.c:1599
void plexus_cmd_join(char *user, char *channel, time_t chantime)
Definition: plexus2.c:872
void plexus_cmd_sqline(char *mask, char *reason)
Definition: plexus2.c:785
void plexus_cmd_211(char *buf)
Definition: plexus2.c:1359
void plexus_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: plexus2.c:847
void plexus_cmd_317(char *buf)
Definition: plexus2.c:1281
void plexus_cmd_sgline(char *mask, char *reason)
Definition: plexus2.c:821
void plexus_cmd_release_svshold(char *nick)
Definition: plexus2.c:1544
void plexus_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: plexus2.c:587
void plexus_cmd_307(char *buf)
Definition: plexus2.c:1245
void plexus_cmd_bob()
Definition: plexus2.c:994
void plexus_cmd_372(char *source, char *msg)
Definition: plexus2.c:1195
void plexus_cmd_part(char *nick, char *chan, char *buf)
Definition: plexus2.c:1019
void plexus_cmd_unban(char *name, char *nick)
Definition: plexus2.c:1575
void plexus_cmd_250(char *buf)
Definition: plexus2.c:1233
void plexus_cmd_bot_chan_mode(char *nick, char *chan)
Definition: plexus2.c:1415
void plexus_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: plexus2.c:1583
void plexus_cmd_svsnick(char *source, char *guest, time_t when)
Definition: plexus2.c:1551
void plexus_cmd_svso(char *source, char *nick, char *flag)
Definition: plexus2.c:1569
void plexus_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: plexus2.c:833
void plexus_cmd_243(char *buf)
Definition: plexus2.c:1347
void plexus_cmd_notice2(char *source, char *dest, char *msg)
Definition: plexus2.c:558
void plexus_cmd_unszline(char *mask)
Definition: plexus2.c:797
void plexus_cmd_quit(char *source, char *buf)
Definition: plexus2.c:1422
void plexus_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: plexus2.c:1008
void plexus_cmd_351(char *source)
Definition: plexus2.c:1493
void plexus_cmd_remove_akill(char *user, char *host)
Definition: plexus2.c:827