1 /* 'new' config.h:
2  *	A configuration file designed to make best use of the abilities
3  *	of ircII, and trying to make things more intuitively understandable.
4  *
5  * Based on the 'classic' config.h by Michael Sandrof.
6  *
7  * Copyright (c) 1991 Michael Sandrof.
8  * Copyright (c) 1991 Carl V. Loesch
9  * Copyright (c) 1991, 1992 Troy Rollo.
10  * Copyright (c) 1992-1998 Matthew R. Green.
11  * All rights reserved.
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions
15  * are met:
16  * 1. Redistributions of source code must retain the above copyright
17  *    notice, this list of conditions and the following disclaimer.
18  * 2. Redistributions in binary form must reproduce the above copyright
19  *    notice, this list of conditions and the following disclaimer in the
20  *    documentation and/or other materials provided with the distribution.
21  * 3. The name of the author may not be used to endorse or promote products
22  *    derived from this software without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
25  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27  * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
30  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
31  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34  * SUCH DAMAGE.
35  *
36  * $Id: config.h,v 1.29 2009-07-28 16:42:18 f Exp $
37  */
38 
39 #ifndef __config_h_
40 #define __config_h_
41 
42 /*
43  * Set your favorite default server list here.  This list should be a
44  * whitespace separated hostname:portnum:password list (with portnums and
45  * passwords optional).  This IS NOT an optional definition. Please set this
46  * to your nearest servers.  However if you use a seperate 'ircII.servers'
47  * file and the ircII can find it, this setting is overridden.
48  */
49 #ifndef DEFAULT_SERVER
50 # define DEFAULT_SERVER	    "change.this.to.a.server"
51 #endif
52 
53 /*
54  * Uncomment the following if the gecos field of your /etc/passwd has other
55  * information in it that you don't want as the user name (such as office
56  * locations, phone numbers, etc).  The default delimiter is a comma, change
57  * it if you need to. If commented out, the entire gecos field is used.
58  */
59 #define GECOS_DELIMITER ','
60 
61 /*
62  * Set the following to 1 if you wish for IRCII not to disturb the tty's flow
63  * control characters as the default.  Normally, these are ^Q and ^S.  You
64  * may have to rebind them in IRCII.  Set it to 0 for IRCII to take over the
65  * tty's flow control.
66  */
67 #define USE_FLOW_CONTROL 1
68 
69 /*
70  * MAIL_DELIMITER specifies the unique text that separates one mail message
71  * from another in the mail spool file when using UNIX_MAIL.
72  */
73 #define MAIL_DELIMITER "From "
74 
75 /* Make ^Z stop the irc process by default,
76  * if undefined, ^Z will self-insert by default
77  */
78 #define ALLOW_STOP_IRC /**/
79 
80 /* And here is the port number for default client connections.  */
81 #define IRC_PORT 6667
82 
83 /*
84  * Uncomment the following to make ircII read a list of irc servers from
85  * the ircII.servers file in the ircII library. This file should be
86  * whitespace separated hostname:portnum:password (with the portnum and
87  * password being optional). This server list will supercede the
88  * DEFAULT_SERVER.
89 */
90 
91 /*#define SERVERS_FILE "ircII.servers"*/
92 
93 /* Uncomment the following if you want ircII to display the file
94  * ircII.motd in the ircII library at startup.
95  */
96 /*#define MOTD_FILE "ircII.motd"*/
97 /*#define PAUSE_AFTER_MOTD 1*/
98 
99 /*
100  * Below are the IRCII variable defaults.  For boolean variables, use 1 for
101  * ON and 0 for OFF.  You may set string variable to NULL if you wish them to
102  * have no value.  None of these are optional.  You may *not* comment out or
103  * remove them.  They are default values for variables and are required for
104  * proper compilation.
105  *
106  * CTCP reply flood protection sidenote :
107  *   1 - Do not put NULL in any of the three DEFAULT_CTCP_REPLY values.
108  *   2 - Do not change them if you don't understand them, these ones
109  *       do work without being a pain.
110  */
111 /**************************** PATCHED by Flier ******************************/
112 #define DEFAULT_ALWAYS_SPLIT_BIGGEST 1
113 #define DEFAULT_AUTO_RECONNECT 1
114 #define DEFAULT_AUTO_RECONNECT_CHANNELS 1
115 #define DEFAULT_AUTO_UNMARK_AWAY 0
116 #define DEFAULT_AUTO_WHOWAS 0
117 #define DEFAULT_AWAY_FILE "ScrollZ.away"
118 #define DEFAULT_BEEP 1
119 #define DEFAULT_BEEP_MAX 3
120 #define DEFAULT_BEEP_ON_MAIL 0
121 #define DEFAULT_BEEP_ON_MSG "NONE"
122 #define DEFAULT_BEEP_WHEN_AWAY 0
123 #define DEFAULT_BOLD_VIDEO 1
124 #define DEFAULT_CHANLOG_STRIP_ANSI 1
125 #define DEFAULT_CHANNEL_NAME_WIDTH 10
126 #define DEFAULT_CLOCK 1
127 #define DEFAULT_CLOCK_24HOUR 1
128 #define DEFAULT_CLOCK_ALARM NULL
129 #define DEFAULT_CMDCHARS "/"
130 #define DEFAULT_COMMAND_MODE 0
131 #define DEFAULT_CONTINUED_LINE NULL
132 #define DEFAULT_CTCP_REPLY_BACKLOG_SECONDS 5
133 #define DEFAULT_CTCP_REPLY_FLOOD_SIZE_VAR 256
134 #define DEFAULT_CTCP_REPLY_IGNORE_SECONDS 10
135 #define DEFAULT_DCC_BLOCK_SIZE 2048
136 #define DEFAULT_DISPLAY 1
137 #define DEFAULT_DISPLAY_ENCODING "UTF-8"
138 #define DEFAULT_DISPLAY_ANSI 1
139 #define DEFAULT_EIGHT_BIT_CHARACTERS 1
140 #define DEFAULT_ENCRYPT_PROGRAM NULL
141 #define DEFAULT_DECRYPT_PROGRAM NULL
142 #define DEFAULT_EXEC_PROTECTION 1
143 #define DEFAULT_FLOOD_AFTER 6
144 #define DEFAULT_FLOOD_RATE 6
145 #define DEFAULT_FLOOD_USERS 6
146 #define DEFAULT_FLOOD_WARNING 1
147 #define DEFAULT_FULL_STATUS_LINE 1
148 #define DEFAULT_HELP_PAGER 1
149 #define DEFAULT_HELP_PROMPT 1
150 #define DEFAULT_HELP_WINDOW 0
151 #define DEFAULT_HIDE_CHANNEL_KEYS 0
152 #define DEFAULT_HIDE_PRIVATE_CHANNELS 0
153 #define DEFAULT_HIGHLIGHT_CHAR "INVERSE"
154 #define DEFAULT_HISTORY 30
155 #define DEFAULT_HISTORY_FILE NULL
156 #define DEFAULT_HOLD_MODE 0
157 #define DEFAULT_HOLD_MODE_MAX 0
158 #define DEFAULT_HYPER_DCC 0
159 #define DEFAULT_INDENT 1
160 #define DEFAULT_INPUT_ALIASES 0
161 #define DEFAULT_INPUT_ENCODING "UTF-8"
162 #define DEFAULT_INPUT_PROMPT NULL
163 #define DEFAULT_INPUT_PROTECTION 1
164 #define DEFAULT_INPUT_PROMPT_SHIFT_NEW 0
165 #define DEFAULT_IRC_ENCODING "UTF-8"
166 #define DEFAULT_INSERT_MODE 1
167 #define DEFAULT_INVERSE_VIDEO 1
168 #define DEFAULT_ISO2022_SUPPORT 0
169 #define DEFAULT_LASTLOG 512
170 #define DEFAULT_LASTLOG_ANSI_VAR 1
171 #define DEFAULT_LASTLOG_LEVEL "ALL DCC USERLOG1 USERLOG2 USERLOG3 USERLOG4"
172 #define DEFAULT_LOG 0
173 #define DEFAULT_LOGFILE "IrcLog"
174 #define DEFAULT_MAIL 1
175 #define DEFAULT_MAKE_NOTICE_MSG 1
176 #define DEFAULT_MAX_MODES 4
177 #define DEFAULT_MAX_RECURSIONS 10
178 #define DEFAULT_MAX_WALLOP_NICKS 10
179 #define DEFAULT_MINIMUM_SERVERS 0
180 #define DEFAULT_MINIMUM_USERS 0
181 #define DEFAULT_NETSPLIT_TIME 600
182 #define DEFAULT_NOTIFY_HANDLER "NOISY"
183 #define DEFAULT_NOTIFY_LEVEL "ALL DCC USERLOG1 USERLOG2 USERLOG3 USERLOG4"
184 #define DEFAULT_NOTIFY_ON_TERMINATION 0
185 #define DEFAULT_NOTIFY_SHOW_NAME 0
186 #define DEFAULT_NOVICE 0
187 #define DEFAULT_NO_ASK_NICKNAME 0
188 #define DEFAULT_NO_CTCP_FLOOD 1
189 #define DEFAULT_RATE_LIMIT_JOIN "ircd-ratbox-* hybrid-7* ircd-seven-*"
190 #define DEFAULT_SAME_WINDOW_ONLY 1
191 #define DEFAULT_SCROLL 1
192 #define DEFAULT_SCROLL_LINES 1
193 #define DEFAULT_SEND_IGNORE_MSG 0
194 #define DEFAULT_SHELL "/bin/sh"
195 #define DEFAULT_SHELL_FLAGS "-c"
196 #define DEFAULT_SHELL_LIMIT 0
197 #define DEFAULT_SHOW_AWAY_ONCE 0
198 #define DEFAULT_SHOW_CHANNEL_NAMES 1
199 #define DEFAULT_SHOW_END_OF_MSGS 0
200 #define DEFAULT_SHOW_NUMERICS 0
201 #define DEFAULT_SHOW_STATUS_ALL 0
202 #define DEFAULT_SHOW_WHO_HOPCOUNT 0
203 #define DEFAULT_SSL_VERIFY_CERTIFICATE 1
204 #ifdef HAVE_STRFTIME
205 #define DEFAULT_STAMP_FORMAT "%H:%M|"
206 #else
207 #define DEFAULT_STAMP_FORMAT "${Z}|"
208 #endif
209 #define DEFAULT_STATUS_AWAY " (zZzZ: %A)"
210 #define DEFAULT_STATUS_CHANNEL " on %C"
211 #define DEFAULT_STATUS_CHANOP "@"
212 #define DEFAULT_STATUS_CLOCK "time is %T"
213 #define DEFAULT_STATUS_FORMAT "[%R] %* %B%H%A%S %W %F %>"
214 #define DEFAULT_STATUS_FORMAT1 "[%R] %*%@%N%#%B%H%C%+%A%Q%S%I%O %W %F %> [lj %3]"
215 #define DEFAULT_STATUS_FORMAT2 "%1 [lag %2] %M [g %6] [s %5]%P%s [%D:%E:%X:%L:%7:%8] %> %T"
216 #define DEFAULT_STATUS_FORMAT3 "%U [topic %9] %>"
217 #define	DEFAULT_STATUS_GROUP " [%G]"
218 #define DEFAULT_STATUS_HOLD " [..more..]"
219 #define DEFAULT_STATUS_HOLD_LINES " (%B)"
220 #define DEFAULT_STATUS_INSERT ""
221 #define DEFAULT_STATUS_LINES 2
222 #define DEFAULT_STATUS_MAIL "[m %M]"
223 #define DEFAULT_STATUS_MODE " (+%+)"
224 #define DEFAULT_STATUS_NOTIFY " [a:%F]"
225 #define DEFAULT_STATUS_OPER "*"
226 #define DEFAULT_STATUS_OVERWRITE " (ow)"
227 #define DEFAULT_STATUS_QUERY " [Q/%Q]"
228 #define DEFAULT_STATUS_SCROLLED " -scr-"
229 #define DEFAULT_STATUS_SCROLLED_LINES " (%s)"
230 #define DEFAULT_STATUS_SERVER " via %S"
231 #define DEFAULT_STATUS_UMODE " (+%#)"
232 #define DEFAULT_STATUS_UPTIME "[up %dd %hh %mm]"
233 #define DEFAULT_STATUS_USER " * type /help for help "
234 #define DEFAULT_STATUS_USER1 ""
235 #define DEFAULT_STATUS_USER2 ""
236 #define DEFAULT_STATUS_USER3 ""
237 #define DEFAULT_STATUS_WINDOW "^^^^^"
238 #define DEFAULT_SUPPRESS_SERVER_MOTD 0
239 #define DEFAULT_TAB 1
240 #define DEFAULT_TAB_MAX 8
241 #define DEFAULT_UNDERLINE_VIDEO 1
242 #define DEFAULT_USERINFO ""
243 #define DEFAULT_USER_WALLOPS 0
244 #define DEFAULT_VERBOSE_CTCP 1
245 #define DEFAULT_WARN_OF_IGNORES 1
246 #define DEFAULT_XTERM_GEOMOPTSTR "-geom"
247 #define DEFAULT_XTERM_OPTIONS NULL
248 #define DEFAULT_XTERM_PATH "xterm"
249 
250 #define DEFAULT_STATUS_USER4 ""
251 #define DEFAULT_STATUS_USER5 ""
252 #define DEFAULT_STATUS_USER6 ""
253 #define DEFAULT_STATUS_USER7 ""
254 #define DEFAULT_STATUS_USER8 ""
255 #define DEFAULT_STATUS_USER9 ""
256 #define DEFAULT_STATUS_CHANNELCOUNT "[O:%o N:%n T:%t]"
257 #define DEFAULT_STATUS_UPTIME "[up %dd %hh %mm]"
258 
259 #define DEFAULT_TRUNCATE_PUBLIC_CHANNEL 1
260 
261 #if defined(CELE) || defined(WANTANSI)
262 
263 #undef DEFAULT_STAMP_FORMAT
264 #undef DEFAULT_STATUS_AWAY
265 #undef DEFAULT_STATUS_CHANNEL
266 #undef DEFAULT_STATUS_CHANNELCOUNT
267 #undef DEFAULT_STATUS_CLOCK
268 #undef DEFAULT_STATUS_FORMAT
269 #undef DEFAULT_STATUS_FORMAT1
270 #undef DEFAULT_STATUS_FORMAT2
271 #undef DEFAULT_STATUS_FORMAT3
272 #undef DEFAULT_STATUS_HOLD
273 #undef DEFAULT_STATUS_MAIL
274 #undef DEFAULT_STATUS_MODE
275 #undef DEFAULT_STATUS_QUERY
276 #undef DEFAULT_STATUS_SCROLLED
277 #undef DEFAULT_STATUS_UMODE
278 #undef DEFAULT_STATUS_UPTIME
279 #undef DEFAULT_STATUS_WINDOW
280 
281 #endif /* CELE || WANTANSI */
282 
283 #ifdef CELE
284 
285 #undef DEFAULT_BEEP_ON_MSG
286 #undef DEFAULT_BEEP_ON_MAIL
287 #undef DEFAULT_INPUT_PROMPT
288 #undef DEFAULT_SHOW_STATUS_ALL
289 #undef DEFAULT_STATUS_USER
290 #undef DEFAULT_STATUS_USER1
291 
292 #elif defined(WANTANSI)
293 
294 #undef DEFAULT_STATUS_FORMAT3
295 #undef DEFAULT_STATUS_HOLD_LINES
296 #undef DEFAULT_STATUS_NOTIFY
297 #undef DEFAULT_STATUS_OVERWRITE
298 #undef DEFAULT_STATUS_SCROLLED_LINES
299 #undef DEFAULT_STATUS_SERVER
300 #undef DEFAULT_STATUS_WINDOW
301 
302 #endif /* CELE */
303 
304 #if defined(CELE)
305 
306 #define DEFAULT_SHOW_STATUS_ALL 1
307 #define DEFAULT_BEEP_ON_MSG "MSG"
308 #define DEFAULT_BEEP_ON_MAIL 1
309 #ifdef HAVE_STRFTIME
310 #define DEFAULT_STAMP_FORMAT "%H:%M$color(cyan)|$color(off)"
311 #else
312 #define DEFAULT_STAMP_FORMAT "$Z$color(cyan)|$color(off)"
313 #endif
314 #define DEFAULT_STATUS_AWAY "%y6(%y7zZz:%y4%A%y6)"
315 #define DEFAULT_STATUS_CHANNELCOUNT "%y6|%y7O:%y5%o %y7N:%y5%n %y7T:%y5%t%y6| "
316 #define DEFAULT_STATUS_CHANNEL "%y7Ch:%y3%C "
317 #define DEFAULT_STATUS_CLOCK "%y6[%y5%T%y6]"
318 #define DEFAULT_STATUS_HOLD "%y6.o %y7please hit enter %y6o."
319 #define DEFAULT_STATUS_LOADAVG "%y7load/%y4%Z"
320 #define DEFAULT_STATUS_WINDOW "~~~"
321 #define DEFAULT_STATUS_MAIL "%y6(%y7M:%y5%M%y6)"
322 #define DEFAULT_STATUS_MODE "%y6(%y5+%y4%+%y6)"
323 #define DEFAULT_STATUS_QUERY "%y6(%y7Q:%y5%Q%y6)"
324 #define DEFAULT_STATUS_SCROLLED " [..scr..]"
325 #define DEFAULT_STATUS_SCROLLED_LINES " (%y2%s%y6)"
326 #define DEFAULT_STATUS_UMODE "%y6(%y5+%y4%#%y6)"
327 #define DEFAULT_STATUS_UPTIME "%y6|%y7Up:%y5 %dd %hh %mm%y6|"
328 #define DEFAULT_STATUS_USER "?.??"
329 #define DEFAULT_STATUS_USER1 "no cele.sz!"
330 #define DEFAULT_INPUT_PROMPT "%y3${N}%y6:%y3${C}%y6> "
331 #define DEFAULT_STATUS_FORMAT "%y1 %y6[%y7OperVision%y6] %> %y5!S "
332 #define DEFAULT_STATUS_FORMAT1 "%y1 %T %y4%*%@%y3%N %# %A%Q %>%M %1 "
333 #define DEFAULT_STATUS_FORMAT2 "%y1 %C%+%y6|%y7lj:%y5%3%y6| %U%P%s %> %S%H%B%I%O%F %y5%W %y6|%y7load:%y5%!0%y6| %y6|%y3%!1%y6| "
334 #define DEFAULT_STATUS_FORMAT3 "%y1 %y5QuickStat %> %y5lag/%y4%2 %y6[%y5DCC:%y4s%6%y5:%y4r%5%y5:%y4o%4%y6] "
335 
336 #elif defined(WANTANSI)
337 
338 #ifndef LITE
339 #ifdef HAVE_STRFTIME
340 #define DEFAULT_STAMP_FORMAT "%H:%M$color(cyan)|$color(off)"
341 #else
342 #define DEFAULT_STAMP_FORMAT "$Z$color(cyan)|$color(off)"
343 #endif
344 #else  /* LITE */
345 #ifdef HAVE_STRFTIME
346 #define DEFAULT_STAMP_FORMAT "%H:%M|"
347 #else
348 #define DEFAULT_STAMP_FORMAT "$Z|"
349 #endif
350 #endif /* LITE */
351 #define DEFAULT_STATUS_AWAY " (%y2zZzZ: %A%y6)"
352 #define DEFAULT_STATUS_CHANNEL " on %y5%C%y6"
353 #define DEFAULT_STATUS_CHANNELCOUNT "[O:%y8%o%y6 N:%y8%n%y6 T:%y8%t%y6]"
354 #define DEFAULT_STATUS_CLOCK "[time %y7%T%y6]"
355 
356 #if defined(OPERVISION)
357 #define DEFAULT_STATUS_FORMAT "%y1[%y2%R%y6] %* %B%H%A%S %W %F %> [%y2%!S%y6]%y0"
358 #else  /* OPERVISION */
359 #define DEFAULT_STATUS_FORMAT "%y1[%y2%R%y6] %* %B%H%A%S %W %F %>%y0"
360 #endif /* OPERVISION */
361 
362 #define DEFAULT_STATUS_FORMAT1 "%y1[%y2%R%y6] %y2%*%y6%y3%@%y6%y7%N%y6%#%C%+%A%Q%S%I%O %y3%W%y6 %F%y9%H%y6 %> [lj %y5%3%y6]%y0"
363 #define DEFAULT_STATUS_FORMAT2 "%y1%1 [lag %y8%2%y6] %M [g %y8%6%y6] [s %y8%5%y6]%P%s [%y8%D%y6:%y8%E%y6:%y8%X%y6:%y8%L%y6:%y8%7%y6:%y8%8%y6]%B %> %T%y0"
364 #define DEFAULT_STATUS_FORMAT3 "%y1%U [topic %y8%9%y6] %> %y0"
365 #define DEFAULT_STATUS_HOLD " [..more..]"
366 #define DEFAULT_STATUS_HOLD_LINES " (%y2%B%y6)"
367 #define DEFAULT_STATUS_MAIL "[m %y8%M%y6]"
368 #define DEFAULT_STATUS_MODE " [%y8+%+%y6]"
369 #define DEFAULT_STATUS_NOTIFY " %ya[a:%F]%y1%y6"
370 #define DEFAULT_STATUS_OVERWRITE " (%y2ow%y6)"
371 #define DEFAULT_STATUS_QUERY " [%y4Q%y6/%y4%Q%y6]"
372 #define DEFAULT_STATUS_SCROLLED " [..scr..]"
373 #define DEFAULT_STATUS_SCROLLED_LINES " (%y2%s%y6)"
374 #define DEFAULT_STATUS_SERVER " via %y7%S%y6"
375 #define DEFAULT_STATUS_UMODE " (%y4+%#%y6)"
376 #define DEFAULT_STATUS_UPTIME "[up %y8%dd %hh %mm%y6]"
377 #define DEFAULT_STATUS_WINDOW "^^^^^"
378 
379 #endif /* CELE */
380 
381 #ifdef ACID
382 
383 #undef DEFAULT_AUTO_WHOWAS
384 #undef DEFAULT_CLOCK_24HOUR
385 #undef DEFAULT_SEND_IGNORE_MSG
386 #undef DEFAULT_SHOW_STATUS_ALL
387 #undef DEFAULT_SUPPRESS_SERVER_MOTD
388 #undef DEFAULT_STATUS_FORMAT1
389 #undef DEFAULT_BEEP_ON_MSG
390 
391 #define DEFAULT_BEEP_ON_MSG "MSG"
392 #define DEFAULT_AUTO_WHOWAS 1
393 #define DEFAULT_CLOCK_24HOUR 0
394 #define DEFAULT_SEND_IGNORE_MSG 1
395 #define DEFAULT_SHOW_STATUS_ALL 1
396 #define DEFAULT_SUPPRESS_SERVER_MOTD 1
397 #define DEFAULT_STATUS_FORMAT1 "%y1[%y2%R%y6] %y2%*%y6%y3%@%y6%y7%N%y6%#%C%+%A%Q%S%I%O %y3%W%y6 %F%y9%H%y6 %> [%y4AcidMods v2.5%y6]%y0"
398 
399 #endif /* ACID */
400 /****************************************************************************/
401 
402 /*
403  * define this if you want to have the -l and -L command line
404  * options.
405  */
406 
407 #define COMMAND_LINE_L
408 
409 #endif /* __config_h_ */
410