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) 1990 Michael Sandrof. 8 * Copyright (c) 1991 Carl V. Loesch 9 * Copyright (c) 1991, 1992 Troy Rollo. 10 * Copyright (c) 1992-1999 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.dist,v 1.33 2000/08/05 04:35:57 mrg 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 "irc.prison.net:6667" 51 * 52 * no default! 53 */ 54#endif 55 56/* 57 * Uncomment the following if the gecos field of your /etc/passwd has other 58 * information in it that you don't want as the user name (such as office 59 * locations, phone numbers, etc). The default delimiter is a comma, change 60 * it if you need to. If commented out, the entire gecos field is used. 61 */ 62#define GECOS_DELIMITER ',' 63 64/* 65 * Set the following to 1 if you wish for IRCII not to disturb the tty's flow 66 * control characters as the default. Normally, these are ^Q and ^S. You 67 * may have to rebind them in IRCII. Set it to 0 for IRCII to take over the 68 * tty's flow control. 69 */ 70#define USE_FLOW_CONTROL 1 71 72/* 73 * MAIL_DELIMITER specifies the unique text that separates one mail message 74 * from another in the mail spool file when using UNIX_MAIL. 75 */ 76#define MAIL_DELIMITER "From " 77 78/* Make ^Z stop the irc process by default, 79 * if undefined, ^Z will self-insert by default 80 */ 81#define ALLOW_STOP_IRC /**/ 82 83/* And here is the port number for default client connections. */ 84#define IRC_PORT 6667 85#define ICB_PORT 7326 /* NOTE: ICB is not supported by ninja */ 86 87/* 88 * Uncomment the following to make ircII read a list of irc servers from 89 * the ircII.servers file in the ircII library. This file should be 90 * whitespace separated hostname:portnum:password (with the portnum and 91 * password being optional). This server list will supercede the 92 * DEFAULT_SERVER. 93*/ 94 95#define SERVERS_FILE "ninja.servers" 96 97/* Uncomment the following if you want ircII to display the file 98 * ircII.motd in the ircII library at startup. 99 */ 100#define MOTD_FILE "ninja.motd" 101#define PAUSE_AFTER_MOTD 1 102 103/* 104 * Below are the IRCII variable defaults. For boolean variables, use 1 for 105 * ON and 0 for OFF. You may set string variable to NULL if you wish them to 106 * have no value. None of these are optional. You may *not* comment out or 107 * remove them. They are default values for variables and are required for 108 * proper compilation. 109 * 110 * CTCP reply flood protection sidenote : 111 * 1 - Do not put NULL in any of the three DEFAULT_CTCP_REPLY values. 112 * 2 - Do not change them if you don't understand them, these ones 113 * do work without being a pain. 114 */ 115 116#define DEFAULT_ALWAYS_SPLIT_BIGGEST 1 117#define DEFAULT_ANSI_COLOR 1 118#define DEFAULT_ANTI_IDLE 0 119#define DEFAULT_AUTO_RECONNECT_DELAY 0 120#define DEFAULT_AUTO_REJOIN 0 121#define DEFAULT_AUTO_UNMARK_AWAY 0 122#define DEFAULT_AUTO_WHOIS_NICK_IN_USE 0 123#define DEFAULT_AUTO_WHOWAS 0 124#define DEFAULT_BACKGROUND_COLOR 1 125#define DEFAULT_BACKGROUND_COLOUR DEFAULT_BACKGROUND_COLOR 126#define DEFAULT_BEEP 1 127#define DEFAULT_BEEP_MAX 3 128#define DEFAULT_BEEP_ON_MSG "NONE" 129#define DEFAULT_BEEP_WHEN_AWAY 0 130#define DEFAULT_BOLD_VIDEO 1 131#define DEFAULT_CHANNEL_NAME_WIDTH 10 132#define DEFAULT_CLOAK 0 133#define DEFAULT_CLOCK 1 134#define DEFAULT_CLOCK_24HOUR 0 135#ifdef SUPPORT_ALARM_CLOCK 136# define DEFAULT_CLOCK_ALARM NULL 137#endif 138#define DEFAULT_CMDCHARS "/" 139#define DEFAULT_COMMAND_MODE 0 140#define DEFAULT_CONTINUED_LINE " + " 141#define DEFAULT_CTCP_REPLY_BACKLOG_SECONDS 5 142#define DEFAULT_CTCP_REPLY_FLOOD_SIZE_VAR 256 143#define DEFAULT_CTCP_REPLY_IGNORE_SECONDS 10 144#define DEFAULT_DCC_AUTOGET 0 145#define DEFAULT_DCC_BLOCK_SIZE 4096 146#define DEFAULT_DCC_IDLE_LIMIT 360 147#define DEFAULT_DEFAULT_AWAY_MSG "- Ninja IRC -" 148#define DEFAULT_DEFAULT_BACK_MSG "hi!" 149#define DEFAULT_DISPLAY 1 150/* 151 * this works in conjunction with RESOLVE_HOSTS 152 * if both are set, the client makes sure that reverse == forward 153 */ 154#define DEFAULT_DOUBLE_CHECK_ADDRESSES 1 155#define DEFAULT_EIGHT_BIT_CHARACTERS 1 156#define DEFAULT_EMAIL_ADDRESS NULL 157#define DEFAULT_ENCRYPT_PROGRAM NULL 158#define DEFAULT_EXEC_PROTECTION 1 159#define DEFAULT_EXTENDED_CACHE 1 160#define DEFAULT_FLOOD_AFTER 10 161#define DEFAULT_FLOOD_IGNORE_TIME 120 162#define DEFAULT_FLOOD_PROTECTION 1 163#define DEFAULT_FLOOD_RATE 30 164#define DEFAULT_FLOOD_USERS 3 165#define DEFAULT_FLOOD_WARNING 1 166#define DEFAULT_FOREGROUND_COLOR 15 167#define DEFAULT_FOREGROUND_COLOUR DEFAULT_FOREGROUND_COLOR 168#define DEFAULT_FULL_STATUS_LINE 1 169#define DEFAULT_HACKED_IDENTD NULL 170#define DEFAULT_HELP_PAGER 1 171#define DEFAULT_HELP_PROMPT 1 172#define DEFAULT_HELP_WINDOW 0 173#define DEFAULT_HIDE_CHANNEL_KEYS 1 174#define DEFAULT_HIDE_PRIVATE_CHANNELS 1 175#define DEFAULT_HIGHLIGHT_CHAR "INVERSE" 176#define DEFAULT_HISTORY 500 177#define DEFAULT_HISTORY_FILE NULL 178#define DEFAULT_HOLD_MODE 0 179#define DEFAULT_HOLD_MODE_MAX 0 180#define DEFAULT_IDLE_LIMIT 60 181#define DEFAULT_INDENT 0 182#define DEFAULT_INPUT_ALIASES 0 183#define DEFAULT_INPUT_PROMPT NULL 184#define DEFAULT_INPUT_PROTECTION 1 185#define DEFAULT_INSERT_MODE 1 186#define DEFAULT_INVERSE_VIDEO 1 187#define DEFAULT_ISO2022_SUPPORT 0 188#define DEFAULT_LAG_LIMIT 600 189#define DEFAULT_LASTLOG 500 190#define DEFAULT_LASTLOG_LEVEL "ALL" 191#define DEFAULT_LEADER "#N# " 192#define DEFAULT_LOG 0 193#define DEFAULT_LOGFILE "ninja.log" 194#define DEFAULT_MAIL 0 195#define DEFAULT_MAKE_NOTICE_MSG 1 196#define DEFAULT_MAX_RECURSIONS 10 197#define DEFAULT_MINIMUM_SERVERS 0 198#define DEFAULT_MINIMUM_USERS 0 199#define DEFAULT_MIRC_COLOR 1 200 201/* ninja dcc offering stuff */ 202#define DEFAULT_NDCC_INTERVAL 0 203#define DEFAULT_NDCC_OFFERING 1 204#define DEFAULT_NDCC_PUBLIC 0 205#define DEFAULT_NDCC_SECURE 0 206#define DEFAULT_NOTIFY_HANDLER "QUIET" 207#define DEFAULT_NOTIFY_LEVEL "ALL DCC" 208#define DEFAULT_NOTIFY_ON_TERMINATION 0 209#define DEFAULT_NOVICE 1 210#define DEFAULT_NO_ASK_NICKNAME 0 211#define DEFAULT_NO_CTCP_FLOOD 0 212/* 213 * whether or not to resolve hosts on dcc stuff.. 214 * NOTE: this will block while the dns lookup is performed. 215 * the lookup can take a while, please be aware that 216 * this could cause your client to hang until the lookup is 217 * finished.. 218 */ 219#define DEFAULT_RESOLVE_HOSTS 0 220#define DEFAULT_SAME_WINDOW_ONLY 0 221#define DEFAULT_SCROLL 1 222#define DEFAULT_SCROLL_LINES 1 223#define DEFAULT_SEND_IGNORE_MSG 0 224#define DEFAULT_SIGNOFF_REASON "Ninja IRC! phear it!" 225#define DEFAULT_SILENT_AWAY 1 226#define DEFAULT_SHELL "/bin/sh" 227#define DEFAULT_SHELL_FLAGS "-c" 228#define DEFAULT_SHELL_LIMIT 0 229/* 230 * shenay was a script'd dcc chat bot for FausT, phear it! 231#define DEFAULT_SHENAY 1 232 */ 233#define DEFAULT_SHOW_AWAY_ONCE 1 234#define DEFAULT_SHOW_CHANNEL_NAMES 0 235#define DEFAULT_SHOW_END_OF_MSGS 0 236#define DEFAULT_SHOW_NUMERICS 0 237#define DEFAULT_SHOW_STATUS_ALL 0 238#define DEFAULT_SHOW_WHO_HOPCOUNT 1 239/* socks proxy vars.. useful if you want to hard code a proxy for 240 * daemon usage (since daemon usage doesn't allow change this) 241 */ 242#undef DEFAULT_SOCKS_PROXY 243#undef DEFAULT_SOCKS_USERNAME 244#undef DEFAULT_SOCKS_PASSWORD 245 246#define DEFAULT_STATUS_AWAY " [away:%A]" 247#define DEFAULT_STATUS_CHANNEL "%C" 248#define DEFAULT_STATUS_CHANOP "@" 249#define DEFAULT_STATUS_CLOCK " %T" 250#define DEFAULT_STATUS_FORMAT " %T [%*%D%@%N%#] [%C%+%!]%S%2%H%B%Q%A %I%O%M%F %6g/%5s %W %>" 251#define DEFAULT_STATUS_FORMAT1 " [%*%D%@%N%#] [%C%+]%S%2 %>[%5s/%6g] [time %T]" 252#define DEFAULT_STATUS_FORMAT2 "%!%H%B%Q%A%I%O%M%F%U %W %>[up %1]" 253#define DEFAULT_STATUS_GROUP " [%G]" 254#define DEFAULT_STATUS_HOLD " --more--" 255#define DEFAULT_STATUS_HOLD_LINES " (%B)" 256#define DEFAULT_STATUS_INSERT "" 257#define DEFAULT_STATUS_LAG " (lag: %2)" 258#define DEFAULT_STATUS_MAIL " [m: %M]" 259#define DEFAULT_STATUS_MODE "(+%+)" 260#define DEFAULT_STATUS_NOTIFY " [ac: %F]" 261#define DEFAULT_STATUS_OPER "*" 262#define DEFAULT_STATUS_OVERWRITE "(ovr) " 263#define DEFAULT_STATUS_QUERY " [qry: %Q]" 264#define DEFAULT_STATUS_SERVER " via %S" 265#define DEFAULT_STATUS_UMODE " (+%#)" 266#define DEFAULT_STATUS_USER NULL 267#define DEFAULT_STATUS_USER1 "" 268#define DEFAULT_STATUS_USER2 "" 269#define DEFAULT_STATUS_USER3 "" 270#define DEFAULT_STATUS_USERS " [%!/%!/%!/%!]" 271#define DEFAULT_STATUS_VOICE "+" 272#define DEFAULT_STATUS_WINDOW "-X-" 273#define DEFAULT_STRIP_LOG_ANSI 1 274#define DEFAULT_STRIP_REDIRECT_ANSI 1 275#define DEFAULT_SUPPRESS_SERVER_MOTD 0 276#define DEFAULT_TAB 1 277#define DEFAULT_TAB_MAX 4 278#define DEFAULT_UNDERLINE_VIDEO 1 279#define DEFAULT_USER_INFO "I use Ninja IRC!" 280#define DEFAULT_USERINFO DEFAULT_USER_INFO 281#define DEFAULT_USER_WALLOPS 1 282#define DEFAULT_USE_OLD_MSG 0 283#define DEFAULT_VERBOSE_CTCP 1 284#define DEFAULT_WARN_OF_IGNORES 1 285#define DEFAULT_XTERM_GEOMOPTSTR "-geom" 286#define DEFAULT_XTERM_OPTIONS "-bg black -fg grey" 287#define DEFAULT_XTERM_PATH "xterm" 288 289/* catch core dumps */ 290#define CORECATCH 1 291 292/* show time it took to cache channel on join? */ 293#define SHOW_JOIN_TIME 1 294 295/* allow /oj command? */ 296#undef ALLOW_OJ 297 298/* allow /resync command? */ 299#undef ALLOW_RESYNC 300 301/* /quit on oper kill */ 302#undef FASCIST_QUIT_ON_OPERATOR_KILL 303 304/* support ICB? */ 305#undef SUPPORT_ICB 306 307/* support alarm clock? */ 308#undef SUPPORT_ALARM_CLOCK 309 310/* show yourself signing off on /quit? */ 311#define SHOW_OWN_SIGNOFF 312 313/* the following defines will set certain frequencies for ninja's 314 * scheduled checking routines.. 315 */ 316#define NFREQ_TAB_KEY_EXPIRE 3600 317#define NFREQ_SERVER_LAG_CHECK 30 318#define NFREQ_ORIGNICK 30 319#define NFREQ_SERVER_CONNECT 300 320 321#endif /* __config_h_ */ 322