Anope IRC Services  Version 1.8
depricated.h
Go to the documentation of this file.
1 /* depricated.h
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  All of these functions were replaced in 1.7.6, you should move your modules
16  to use the new functions
17 */
18 
19 #define change_user_mode(u, modes, arg) common_svsmode(u, modes, arg)
20 #define GetIdent(x) common_get_vident(x)
21 #define GetHost(x) common_get_vhost(x)
22 
23 #define NEWNICK(nick,user,host,real,modes,qline) \
24  anope_cmd_bot_nick(nick,user,host,real,modes)
25 
26 #define s_akill(user, host, who, when, expires, reason) \
27  anope_cmd_akill(user, host, who, when, expires, reason)
28 
29 #define set_umode(user, ac, av) anope_set_umode(user, ac, av)
30 
31 #define s_svsnoop(server, set) anope_cmd_svsnoop(server, set)
32 
33 #define s_sqline(mask, reason) anope_cmd_sqline(mask, reason)
34 
35 #define s_sgline(mask, reason) anope_cmd_sgline(mask, reason)
36 #define s_szline(mask, reason) anope_cmd_szline(mask, reason)
37 #define s_unsgline(mask) anope_cmd_unsgline(mask)
38 #define s_unsqline(mask) anope_cmd_unsqline(mask)
39 #define s_unszline(mask) anope_cmd_unszline(mask)
40 
41 #define s_rakill(user, host) anope_cmd_remove_akill(user, host)
42 
43 
44 # define NICKSERV_MODE ircd->nickservmode
45 # define CHANSERV_MODE ircd->chanservmode
46 # define HOSTSERV_MODE ircd->hostservmode
47 # define MEMOSERV_MODE ircd->memoservmode
48 # define BOTSERV_MODE ircd->botservmode
49 # define HELPSERV_MODE ircd->helpservmode
50 # define OPERSERV_MODE ircd->oprservmode
51 # define DEVNULL_MODE ircd->devnullmode
52 # define GLOBAL_MODE ircd->globalmode
53 # define NICKSERV_ALIAS_MODE ircd->nickservaliasmode
54 # define CHANSERV_ALIAS_MODE ircd->chanservaliasmode
55 # define MEMOSERV_ALIAS_MODE ircd->memoservaliasmode
56 # define BOTSERV_ALIAS_MODE ircd->botservaliasmode
57 # define HELPSERV_ALIAS_MODE ircd->helpservaliasmode
58 # define OPERSERV_ALIAS_MODE ircd->operservaliasmode
59 # define DEVNULL_ALIAS_MODE ircd->devnullaliasmode
60 # define GLOBAL_ALIAS_MODE ircd->globalaliasmode
61 # define HOSTSERV_ALIAS_MODE ircd->hostservaliasmode
62 # define BOTSERV_BOTS_MODE ircd->botserv_bot_mode
63 #define CHAN_MAX_SYMBOL ircd->max_symbols
64 #define MODESTOREMOVE ircd->modestoremove
65 
66 #ifdef IRC_HYBRID
67 # define HAS_HALFOP
68 # define HAS_EXCEPT
69 #endif
70 
71 #ifdef IRC_VIAGRA
72 # define HAS_HALFOP
73 # define HAS_VHOST
74 # define HAS_VIDENT
75 # define HAS_EXCEPT
76 #endif
77 
78 #ifdef IRC_BAHAMUT
79 # define HAS_NICKIP
80 # define HAS_EXCEPT
81 # define HAS_SVSHOLD
82 #endif
83 
84 #ifdef IRC_RAGE2
85 # define HAS_HALFOP
86 # define HAS_EXCEPT
87 # define HAS_VHOST
88 # define HAS_NICKVHOST
89 #endif
90 
91 #ifdef IRC_PTLINK
92 # define HAS_NICKVHOST
93 # define HAS_VHOST
94 # define HAS_FMODE
95 # define HAS_EXCEPT
96 #endif
97 
98 #ifdef IRC_ULTIMATE2
99 # define IRC_ULTIMATE /* gotta do this for old mods */
100 # define HAS_FMODE
101 # define HAS_HALFOP
102 # define HAS_LMODE
103 # define HAS_VHOST
104 # define HAS_VIDENT
105 # define HAS_EXCEPT
106 #endif
107 
108 #if defined(IRC_UNREAL31) || defined(IRC_UNREAL32)
109 # define IRC_UNREAL /* gotta do this for old mods */
110 # define HAS_FMODE
111 # define HAS_HALFOP
112 # define HAS_LMODE
113 # define HAS_NICKVHOST
114 # define HAS_VHOST
115 # define HAS_VIDENT
116 # define HAS_EXCEPT
117 #endif
118 
119 #ifdef IRC_ULTIMATE3
120 # define HAS_HALFOP
121 # define HAS_VHOST
122 # define HAS_NICKVHOST
123 # define HAS_VIDENT
124 # define HAS_EXCEPT
125 #endif
126 
127