-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettingDefaults.h
executable file
·228 lines (223 loc) · 7.07 KB
/
SettingDefaults.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
//
//---------------------------------------------------------------------------
#ifndef SettingDefaultsH
#define SettingDefaultsH
//---------------------------------------------------------------------------
bool SetBoolDef[] = {
true, //ANTI_MOGLO
false, //AUTO_START
false, //REDIRECT_ALL
true, //REDIRECT_WHEN_HUB_FULL
true, //AUTO_REG
false, //REG_ONLY
false, //REG_ONLY_REDIR
true, //SHARE_LIMIT_REDIR
true, //SLOTS_LIMIT_REDIR
true, //HUB_SLOT_RATIO_REDIR
true, //MAX_HUBS_LIMIT_REDIR
true, //MODE_TO_MYINFO
false, //MODE_TO_DESCRIPTION
false, //STRIP_DESCRIPTION
true, //STRIP_TAG
false, //STRIP_CONNECTION
false, //STRIP_EMAIL
true, //REG_BOT
true, //USE_BOT_NICK_AS_HUB_SEC
true, //REG_OP_CHAT
true, //TEMP_BAN_REDIR
true, //PERM_BAN_REDIR
true, //ENABLE_SCRIPTING
true, //KEEP_SLOW_USERS
true, //CHECK_NEW_RELEASES
true, //ENABLE_TRAY_ICON
false, //START_MINIMIZED
true, //FILTER_KICK_MESSAGES
true, //SEND_KICK_MESSAGES_TO_OPS
true, //SEND_STATUS_MESSAGES
false, //SEND_STATUS_MESSAGES_AS_PM
true, //ENABLE_TEXT_FILES
false, //SEND_TEXT_FILES_AS_PM
false, //STOP_SCRIPT_ON_ERROR
false, //MOTD_AS_PM
false, //DEFLOOD_REPORT
false, //REPLY_TO_HUB_COMMANDS_AS_PM
false, //DISABLE_MOTD
false, //DONT_ALLOW_PINGERS
false, //REPORT_PINGERS
true, //REPORT_3X_BAD_PASS
true, //ADVANCED_PASS_PROTECTION
false, //BIND_ONLY_SINGLE_IP
true, //RESOLVE_TO_IP
true, //NICK_LIMIT_REDIR
/*OBSOLOTE*/true, //ABSOLOTE_SEND_USERIP2_TO_USER_ON_LOGIN
true, //BAN_MSG_SHOW_IP
true, //BAN_MSG_SHOW_RANGE
true, //BAN_MSG_SHOW_NICK
true, //BAN_MSG_SHOW_REASON
true, //BAN_MSG_SHOW_BY
true, //REPORT_SUSPICIOUS_TAG
/*OABSOLETE*/true, //ACCEPT_UNKNOWN_TAG
true, //CHECK_IP_IN_COMMANDS
/*OBSOLETE*/false, //ABSOLOTE_POPUP_SCRIPT_WINDOW
false, //LOG_SCRIPT_ERRORS
false, //NO_QUACK_SUPPORTS
false, //HASH_PASSWORDS
};
int16_t SetShortDef[] = {
500, //MAX_USERS
0, //MIN_SHARE_LIMIT
0, //MIN_SHARE_UNITS
0, //MAX_SHARE_LIMIT
0, //MAX_SHARE_UNITS
0, //MIN_SLOTS_LIMIT
0, //MAX_SLOTS_LIMIT
0, //HUB_SLOT_RATIO_HUBS
0, //HUB_SLOT_RATIO_SLOTS
0, //MAX_HUBS_LIMIT
0, //NO_TAG_OPTION
1, //FULL_MYINFO_OPTION
300, //MAX_CHAT_LEN
5, //MAX_CHAT_LINES
512, //MAX_PM_LEN
25, //MAX_PM_LINES
20, //DEFAULT_TEMP_BAN_TIME
100, //MAX_PASIVE_SR
30, //MYINFO_DELAY
20, //MAIN_CHAT_MESSAGES
20, //MAIN_CHAT_TIME
2, //MAIN_CHAT_ACTION
5, //SAME_MAIN_CHAT_MESSAGES
60, //SAME_MAIN_CHAT_TIME
2, //SAME_MAIN_CHAT_ACTION
2, //SAME_MULTI_MAIN_CHAT_MESSAGES
2, //SAME_MULTI_MAIN_CHAT_LINES
3, //SAME_MULTI_MAIN_CHAT_ACTION
10, //PM_MESSAGES
10, //PM_TIME
2, //PM_ACTION
5, //SAME_PM_MESSAGES
60, //SAME_PM_TIME
2, //SAME_PM_ACTION
2, //SAME_MULTI_PM_MESSAGES
2, //SAME_MULTI_PM_LINES
3, //SAME_MULTI_PM_ACTION
2, //SEARCH_MESSAGES
10, //SEARCH_TIME
1, //SEARCH_ACTION
1, //SAME_SEARCH_MESSAGES
60, //SAME_SEARCH_TIME
1, //SAME_SEARCH_ACTION
6, //MYINFO_MESSAGES
60, //MYINFO_TIME
2, //MYINFO_ACTION
1, //GETNICKLIST_MESSAGES
120, //GETNICKLIST_TIME
3, //GETNICKLIST_ACTION
10, //NEW_CONNECTIONS_COUNT
60, //NEW_CONNECTIONS_TIME
6, //DEFLOOD_WARNING_COUNT
2, //DEFLOOD_WARNING_ACTION
240, //DEFLOOD_TEMP_BAN_TIME
20, //GLOBAL_MAIN_CHAT_MESSAGES
10, //GLOBAL_MAIN_CHAT_TIME
10, //GLOBAL_MAIN_CHAT_TIMEOUT
2, //GLOBAL_MAIN_CHAT_ACTION
1, //MIN_SEARCH_LEN
96, //MAX_SEARCH_LEN
2, //MIN_NICK_LEN
64, //MAX_NICK_LEN
1, //BRUTE_FORCE_PASS_PROTECT_BAN_TYPE
24, //BRUTE_FORCE_PASS_PROTECT_TEMP_BAN_TIME
100, //MAX_PM_COUNT_TO_USER
25, //MAX_SIMULTANEOUS_LOGINS
120, //MAIN_CHAT_MESSAGES2
600, //MAIN_CHAT_TIME2
3, //MAIN_CHAT_ACTION2
60, //PM_MESSAGES2
300, //PM_TIME2
3, //PM_ACTION2
31, //SEARCH_MESSAGES2
300, //SEARCH_TIME2
3, //SEARCH_ACTION2
30, //MYINFO_MESSAGES2
900, //MYINFO_TIME2
3, //MYINFO_ACTION2
256, //MAX_MYINFO_LEN
500, //CTM_MESSAGES
60, //CTM_TIME
1, //CTM_ACTION
5000, //CTM_MESSAGES2
600, //CTM_TIME2
0, //CTM_ACTION2
250, //RCTM_MESSAGES
60, //RCTM_TIME
1, //RCTM_ACTION
2500, //RCTM_MESSAGES2
600, //RCTM_TIME2
3, //RCTM_ACTION2
128, //MAX_CTM_LEN
160, //MAX_RCTM_LEN
1000, //SR_MESSAGES
60, //SR_TIME
1, //SR_ACTION
10000, //SR_MESSAGES2
600, //SR_TIME2
0, //SR_ACTION2
1024, //MAX_SR_LEN
4, //MAX_DOWN_ACTION,
128, //MAX_DOWN_KB,
60, //MAX_DOWN_TIME,
5, //MAX_DOWN_ACTION2,
256, //MAX_DOWN_KB2,
300, //MAX_DOWN_TIME2,
5, //CHAT_INTERVAL_MESSAGES,
10, //CHAT_INTERVAL_TIME,
5, //PM_INTERVAL_MESSAGES,
10, //PM_INTERVAL_TIME,
5, //SEARCH_INTERVAL_MESSAGES,
60, //SEARCH_INTERVAL_TIME,
5, //MAX_CONN_SAME_IP
10, //MIN_RECONN_TIME
0, //SETSHORT_MAX_USERS_PEAK
};
const char* SetTxtDef[] = {
"<Enter hub name here>", //HUB_NAME
"Admin", //ADMIN_NICK
"<Enter hub address here>", //HUB_ADDRESS
"1209;411", //TCP_PORTS
"0", //UDP_PORT
"<Enter hub description here>", //HUB_DESCRIPTION
"Lib-Alpha.CzDC.org:6891", //REDIRECT_ADDRESS
"reg.hublist.org;serv.hubs-list.com;hublist.cz;hublist.dreamland-net.eu;allhublista.myip.hu;hubinfo.myip.hu;publichublist-nl.no-ip.org;reg.hublist.dk", //REGISTER_SERVERS
"Sorry, this hub is only for registered users.", //REG_ONLY_MSG
"", //REG_ONLY_REDIR_ADDRESS
"", //HUB_TOPIC
"Your share is outside the limits. Min share is %[min], max share is %[max].", //SHARE_LIMIT_MSG
"", //SHARE_LIMIT_REDIR_ADDRESS
"Your slots count is outside the limits. Min slots limit is %[min], max slots limit is %[max].", //SLOTS_LIMIT_MSG
"", //SLOTS_LIMIT_REDIR_ADDRESS
"Your hubs/slots ratio outside the limit. Maximum allowed ratio is %[hubs]/%[slots].", //HUB_SLOT_RATIO_MSG
"", //HUB_SLOT_RATIO_REDIR_ADDRESS
"Your hubs count is higher than allowed %[hubs] hubs.", //MAX_HUBS_LIMIT_MSG
"", //MAX_HUBS_LIMIT_REDIR_ADDRESS
"Your client don't send description tag, or your client is not supported here.", //NO_TAG_MSG
"", //NO_TAG_REDIR_ADDRESS
"Lib", //BOT_NICK
"", //BOT_DESCRIPTION
"", //BOT_EMAIL
"OpChat", //OP_CHAT_NICK
"", //OP_CHAT_DESCRIPTION
"", //OP_CHAT_EMAIL
"", //TEMP_BAN_REDIR_ADDRESS
"", //PERM_BAN_REDIR_ADDRESS
"!+-/*", //CHAT_COMMANDS_PREFIXES
"", //HUB_OWNER_EMAIL
"Your nick length is outside the limit. Allowed min is %[min] and max %[max].", //NICK_LIMIT_MSG
"", //NICK_LIMIT_REDIR_ADDRESS
"", //MSG_TO_ADD_TO_BAN_MSG
"", //LANGUAGE
"", //IPV4_ADDRESS
"", //IPV6_ADDRESS
};
//---------------------------------------------------------------------------
#endif