Anope IRC Services  Version 1.8
unreal31.h
Go to the documentation of this file.
1 /* Unreal IRCD 3.1.x 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 /*************************************************************************/
15 
16 #define UMODE_a 0x00000001
17 #define UMODE_h 0x00000002
18 #define UMODE_i 0x00000004
19 #define UMODE_o 0x00000008
20 #define UMODE_r 0x00000010
21 #define UMODE_w 0x00000020
22 #define UMODE_A 0x00000040
23 #define UMODE_g 0x80000000
24 #define UMODE_x 0x40000000
25 
26 #define CMODE_i 0x00000001
27 #define CMODE_m 0x00000002
28 #define CMODE_n 0x00000004
29 #define CMODE_p 0x00000008
30 #define CMODE_s 0x00000010
31 #define CMODE_t 0x00000020
32 #define CMODE_k 0x00000040 /* These two used only by ChanServ */
33 #define CMODE_l 0x00000080
34 #define CMODE_c 0x00000400
35 #define CMODE_A 0x00000800
36 #define CMODE_H 0x00001000
37 #define CMODE_K 0x00002000
38 #define CMODE_L 0x00004000
39 #define CMODE_O 0x00008000
40 #define CMODE_Q 0x00010000
41 #define CMODE_S 0x00020000
42 #define CMODE_V 0x00040000
43 #define CMODE_f 0x00080000
44 #define CMODE_G 0x00100000
45 #define CMODE_C 0x00200000
46 #define CMODE_u 0x00400000
47 #define CMODE_z 0x00800000
48 #define CMODE_N 0x01000000
49 #define CMODE_R 0x00000100 /* Only identified users can join */
50 #define CMODE_r 0x00000200 /* Set for all registered channels */
51 
52 #define DEFAULT_MLOCK CMODE_n | CMODE_t | CMODE_r
53 
54 void unreal_set_umode(User * user, int ac, char **av);
55 void unreal_cmd_svsnoop(char *server, int set);
56 void unreal_cmd_remove_akill(char *user, char *host);
57 void unreal_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when);
58 void unreal_cmd_vhost_off(User * u);
59 void unreal_cmd_akill(char *user, char *host, char *who, time_t when,time_t expires, char *reason);
60 void unreal_cmd_svskill(char *source, char *user, char *buf);
61 void unreal_cmd_svsmode(User * u, int ac, char **av);
62 void unreal_cmd_372(char *source, char *msg);
63 void unreal_cmd_372_error(char *source);
64 void unreal_cmd_375(char *source);
65 void unreal_cmd_376(char *source);
66 void unreal_cmd_nick(char *nick, char *name, char *modes);
67 void unreal_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes);
68 void unreal_cmd_mode(char *source, char *dest, char *buf);
69 void unreal_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes);
70 void unreal_cmd_kick(char *source, char *chan, char *user, char *buf);
71 void unreal_cmd_notice_ops(char *source, char *dest, char *buf);
72 void unreal_cmd_notice(char *source, char *dest, char *buf);
73 void unreal_cmd_notice2(char *source, char *dest, char *msg);
74 void unreal_cmd_privmsg(char *source, char *dest, char *buf);
75 void unreal_cmd_privmsg2(char *source, char *dest, char *msg);
76 void unreal_cmd_serv_notice(char *source, char *dest, char *msg);
77 void unreal_cmd_serv_privmsg(char *source, char *dest, char *msg);
78 void unreal_cmd_bot_chan_mode(char *nick, char *chan);
79 void unreal_cmd_351(char *source);
80 void unreal_cmd_quit(char *source, char *buf);
81 void unreal_cmd_pong(char *servname, char *who);
82 void unreal_cmd_join(char *user, char *channel, time_t chantime);
83 void unreal_cmd_unsqline(char *user);
84 void unreal_cmd_invite(char *source, char *chan, char *nick);
85 void unreal_cmd_part(char *nick, char *chan, char *buf);
86 void unreal_cmd_391(char *source, char *timestr);
87 void unreal_cmd_250(char *buf);
88 void unreal_cmd_307(char *buf);
89 void unreal_cmd_311(char *buf);
90 void unreal_cmd_312(char *buf);
91 void unreal_cmd_317(char *buf);
92 void unreal_cmd_219(char *source, char *letter);
93 void unreal_cmd_401(char *source, char *who);
94 void unreal_cmd_318(char *source, char *who);
95 void unreal_cmd_242(char *buf);
96 void unreal_cmd_243(char *buf);
97 void unreal_cmd_211(char *buf);
98 void unreal_cmd_global(char *source, char *buf);
99 void unreal_cmd_global_legacy(char *source, char *fmt);
100 void unreal_cmd_sqline(char *mask, char *reason);
101 void unreal_cmd_squit(char *servname, char *message);
102 void unreal_cmd_svso(char *source, char *nick, char *flag);
103 void unreal_cmd_chg_nick(char *oldnick, char *newnick);
104 void unreal_cmd_svsnick(char *source, char *guest, time_t when);
105 void unreal_cmd_vhost_on(char *nick, char *vIdent, char *vhost);
106 void unreal_cmd_connect(int servernum);
107 void unreal_cmd_bob();
108 void unreal_cmd_svshold(char *nick);
109 void unreal_cmd_release_svshold(char *nick);
110 void unreal_cmd_unsgline(char *mask);
111 void unreal_cmd_unszline(char *mask);
112 void unreal_cmd_szline(char *mask, char *reason, char *whom);
113 void unreal_cmd_sgline(char *mask, char *reason);
114 void unreal_cmd_unban(char *name, char *nick);
115 void unreal_cmd_svsmode_chan(char *name, char *mode, char *nick);
116 void unreal_cmd_svid_umode(char *nick, time_t ts);
117 void unreal_cmd_nc_change(User * u);
118 void unreal_cmd_svid_umode2(User * u, char *ts);
119 void unreal_cmd_svid_umode3(User * u, char *ts);
120 void unreal_cmd_eob();
121 int unreal_flood_mode_check(char *value);
122 void unreal_cmd_jupe(char *jserver, char *who, char *reason);
123 int unreal_valid_nick(char *nick);
124 void unreal_cmd_ctcp(char *source, char *dest, char *buf);
125 
void unreal_cmd_311(char *buf)
Definition: unreal31.c:818
void unreal_cmd_sgline(char *mask, char *reason)
Definition: unreal31.c:1322
void unreal_cmd_svskill(char *source, char *user, char *buf)
Definition: unreal31.c:540
void unreal_cmd_eob()
Definition: unreal31.c:1399
void unreal_cmd_svso(char *source, char *nick, char *flag)
Definition: unreal31.c:942
void unreal_cmd_remove_akill(char *user, char *host)
Definition: unreal31.c:514
void unreal_cmd_unsqline(char *user)
Definition: unreal31.c:738
void unreal_cmd_unsgline(char *mask)
Definition: unreal31.c:1301
void unreal_set_umode(User *user, int ac, char **av)
Definition: unreal31.c:372
void unreal_cmd_nc_change(User *u)
Definition: unreal31.c:1349
void unreal_cmd_svid_umode2(User *u, char *ts)
Definition: unreal31.c:1355
void unreal_cmd_243(char *buf)
Definition: unreal31.c:892
void unreal_cmd_join(char *user, char *channel, time_t chantime)
Definition: unreal31.c:732
void unreal_cmd_svshold(char *nick)
Definition: unreal31.c:1289
int unreal_valid_nick(char *nick)
Definition: unreal31.c:1458
void unreal_cmd_vhost_on(char *nick, char *vIdent, char *vhost)
Definition: unreal31.c:972
void unreal_cmd_invite(char *source, char *chan, char *nick)
Definition: unreal31.c:765
void unreal_cmd_unban(char *name, char *nick)
Definition: unreal31.c:1327
void unreal_cmd_mode(char *source, char *dest, char *buf)
Definition: unreal31.c:598
void unreal_cmd_serv_notice(char *source, char *dest, char *msg)
Definition: unreal31.c:667
void unreal_cmd_bot_chan_mode(char *nick, char *chan)
Definition: unreal31.c:678
void unreal_cmd_szline(char *mask, char *reason, char *whom)
Definition: unreal31.c:1314
void unreal_cmd_376(char *source)
Definition: unreal31.c:577
void unreal_cmd_vhost_off(User *u)
Definition: unreal31.c:526
void unreal_cmd_242(char *buf)
Definition: unreal31.c:882
void unreal_cmd_global_legacy(char *source, char *fmt)
Definition: unreal31.c:1448
void unreal_cmd_quit(char *source, char *buf)
Definition: unreal31.c:691
void unreal_cmd_guest_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: unreal31.c:591
void unreal_cmd_317(char *buf)
Definition: unreal31.c:838
void unreal_cmd_svsmode_chan(char *name, char *mode, char *nick)
Definition: unreal31.c:1334
void unreal_cmd_svsmode(User *u, int ac, char **av)
Definition: unreal31.c:553
void unreal_cmd_part(char *nick, char *chan, char *buf)
Definition: unreal31.c:775
void unreal_cmd_bob()
Definition: unreal31.c:1001
void unreal_cmd_pong(char *servname, char *who)
Definition: unreal31.c:724
void unreal_cmd_chg_nick(char *oldnick, char *newnick)
Definition: unreal31.c:952
void unreal_cmd_notice2(char *source, char *dest, char *msg)
Definition: unreal31.c:648
void unreal_cmd_219(char *source, char *letter)
Definition: unreal31.c:848
void unreal_cmd_jupe(char *jserver, char *who, char *reason)
Definition: unreal31.c:1434
void unreal_cmd_svid_umode3(User *u, char *ts)
Definition: unreal31.c:1364
int unreal_flood_mode_check(char *value)
Definition: unreal31.c:1420
void unreal_cmd_391(char *source, char *timestr)
Definition: unreal31.c:789
E int servernum
Definition: extern.h:615
void unreal_cmd_312(char *buf)
Definition: unreal31.c:828
void unreal_cmd_318(char *source, char *who)
Definition: unreal31.c:872
void unreal_cmd_notice(char *source, char *dest, char *buf)
Definition: unreal31.c:635
void unreal_cmd_notice_ops(char *source, char *dest, char *buf)
Definition: unreal31.c:625
void unreal_cmd_307(char *buf)
Definition: unreal31.c:808
void unreal_cmd_401(char *source, char *who)
Definition: unreal31.c:863
void unreal_cmd_372_error(char *source)
Definition: unreal31.c:565
void unreal_cmd_privmsg2(char *source, char *dest, char *msg)
Definition: unreal31.c:662
void unreal_cmd_372(char *source, char *msg)
Definition: unreal31.c:560
void unreal_cmd_svsnick(char *source, char *guest, time_t when)
Definition: unreal31.c:962
void unreal_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason)
Definition: unreal31.c:533
void unreal_cmd_svsnoop(char *server, int set)
Definition: unreal31.c:504
void unreal_cmd_serv_privmsg(char *source, char *dest, char *msg)
Definition: unreal31.c:672
void unreal_cmd_release_svshold(char *nick)
Definition: unreal31.c:1295
void unreal_cmd_ctcp(char *source, char *dest, char *buf)
Definition: unreal31.c:1476
void unreal_cmd_topic(char *whosets, char *chan, char *whosetit, char *topic, time_t when)
Definition: unreal31.c:519
void unreal_cmd_global(char *source, char *buf)
Definition: unreal31.c:912
void unreal_cmd_kick(char *source, char *chan, char *user, char *buf)
Definition: unreal31.c:616
void unreal_cmd_bot_nick(char *nick, char *user, char *host, char *real, char *modes)
Definition: unreal31.c:607
void unreal_cmd_privmsg(char *source, char *dest, char *buf)
Definition: unreal31.c:653
void unreal_cmd_svid_umode(char *nick, time_t ts)
Definition: unreal31.c:1342
void unreal_cmd_nick(char *nick, char *name, char *modes)
Definition: unreal31.c:582
void unreal_cmd_squit(char *servname, char *message)
Definition: unreal31.c:932
void unreal_cmd_250(char *buf)
Definition: unreal31.c:798
void unreal_cmd_375(char *source)
Definition: unreal31.c:571
void unreal_cmd_351(char *source)
Definition: unreal31.c:683
void unreal_cmd_211(char *buf)
Definition: unreal31.c:902
void unreal_cmd_unszline(char *mask)
Definition: unreal31.c:1307
void unreal_cmd_connect(int servernum)
Definition: unreal31.c:983
void unreal_cmd_sqline(char *mask, char *reason)
Definition: unreal31.c:922