Path: blob/main/chinese/bitchx/files/patch-include__config.h
16462 views
--- include/config.h.bak 2015-01-29 06:24:13.523281651 -08001+++ include/config.h 2015-01-29 06:33:51.148252017 -08002@@ -63,6 +63,10 @@3"ircnet.eversible.com "\4"ircnet.blacklotus.net "\5"irc.ca.ircnet.net "\6+ "[ircnet tw]"\7+ "irc.seed.net.tw"\8+ "irc.tw.freebsd.org"\9+ "irc.csie.nctu.edu.tw"\10"[ircnet EU] "\11"irc.dotsrc.org "\12"irc.belwue.de "\13@@ -150,7 +154,7 @@14* we define the default network type for server groups. Do not just15* undefine this.16*/17- #define DEFAULT_NETWORK "efnet"18+ #define DEFAULT_NETWORK "ircnet"1920/*21* Below are the IRCII variable defaults. For boolean variables, use 1 for22@@ -297,7 +301,7 @@23* when you've defined LATIN1. The problem is that ansi graphics will look24* ugly if you use the scroll up feature (PageUp/PageDown)25*/26-#undef ASCII_LOGO27+#define ASCII_LOGO2829/* If you define REVERSE_WHITE_BLACK, then the format codes for black and30* white color are revepsed. (%W, %w is bold black and black, %K, %k is bold31@@ -330,7 +334,7 @@3233#define DEFAULT_PING_TYPE 134#define DEFAULT_MSGLOG ON35-#define DEFAULT_AUTO_NSLOOKUP OFF36+#define DEFAULT_AUTO_NSLOOKUP ON37#define DEFAULT_ALT_CHARSET ON38#define DEFAULT_FLOOD_KICK ON39#define DEFAULT_FLOOD_PROTECTION ON40@@ -339,9 +343,9 @@41#define DEFAULT_LLOOK_DELAY 12042#define DEFAULT_ALWAYS_SPLIT_BIGGEST ON43#define DEFAULT_AUTO_UNMARK_AWAY OFF44-#define DEFAULT_AUTO_WHOWAS OFF45+#define DEFAULT_AUTO_WHOWAS ON46#define DEFAULT_BANTIME 60047-#define DEFAULT_BEEP ON48+#define DEFAULT_BEEP OFF49#define DEFAULT_BEEP_MAX 350#define DEFAULT_BEEP_WHEN_AWAY OFF51#define DEFAULT_BOLD_VIDEO ON52@@ -425,7 +429,7 @@53#define DEFAULT_NOTIFY ON54#define DEFAULT_QUEUE_SENDS 055#define DEFAULT_MAX_SERVER_RECONNECT 256-#define DEFAULT_SERVER_GROUPS OFF57+#define DEFAULT_SERVER_GROUPS ON58#define DEFAULT_WINDOW_DESTROY_PART OFF59#define DEFAULT_WINDOW_DESTROY_QUERY OFF60#define DEFAULT_SUPPRESS_SERVER_MOTD ON61@@ -558,7 +562,7 @@62#define DEFAULT_SHELL "/bin/sh"63#define DEFAULT_SHELL_FLAGS "-c"64#define DEFAULT_USERINFO ""65-#define DEFAULT_XTERM "rxvt"66+#define DEFAULT_XTERM "xterm-color"67#define DEFAULT_XTERM_OPTIONS "-bg black -fg white"68#define DEFAULT_DCC_DLDIR "~"6970@@ -692,6 +696,24 @@7172#define WANT_CORE7374+#define WANT_BIG575+76+77+/* XXX I hope this could be integrated into BX.78+ * XXX Well, this should be done via libc,79+ * but FreeBSD libc support is quite LAME.80+ * Macro below are copied from lynx.81+ *82+ * [email protected]83+ */84+#ifdef WANT_BIG585+/* Encoding range below belongs to Big5+ */86+#define is_big5_los(lo) (((char)0x40<=lo)&&(lo<=(char)0x7E)) /* standard */87+#define is_big5_lox(lo) (((char)0x80<=lo)&&(lo<=(char)0xFE)) /* extended */88+#define is_big5_hi(hi) (((char)0x81<=hi)&&(hi<=(char)0xFE))89+#define is_big5(hi,lo) is_big5_hi(hi) && (is_big5_los(lo) || is_big5_lox(lo))90+#endif /*WANT_BIG5*/91+92#undef OFF93#undef ON94959697