summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2013-04-01 00:24:42 +0200
committerBerke Viktor <bviktor@hexchat.org>2013-04-01 00:24:42 +0200
commit4de6db6c47e45816364aee7a4fd0c2318d1ec934 (patch)
tree6e23cc2eb7dbddf65a67b07fb52975ffceb9743e
parented9245add2dacf57977ef0d3fce73f4bb20f5a5d (diff)
Disable Unix path detection mechanism
-rw-r--r--src/common/outbound.c26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index a0daaa9c..c3325f7c 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -4460,16 +4460,29 @@ handle_user_input (session *sess, char *text, int history, int nocommand)
 		return 1;
 	}
 
+#if 0 /* Who would remember all this? */
 	if (prefs.hex_input_command_char[0] == '/')
 	{
 		int i;
 		const char *unix_dirs [] = {
-			"/bin/", "/boot/", "/dev/",
-			"/etc/", "/home/", "/lib/",
-			"/lost+found/", "/mnt/", "/opt/",
-			"/proc/", "/root/", "/sbin/",
-			"/tmp/", "/usr/", "/var/",
-			"/gnome/", NULL};
+			"/bin/",
+			"/boot/",
+			"/dev/",
+			"/etc/",
+			"/home/",
+			"/lib/",
+			"/lost+found/",
+			"/mnt/",
+			"/opt/",
+			"/proc/",
+			"/root/",
+			"/sbin/",
+			"/tmp/",
+			"/usr/",
+			"/var/",
+			"/gnome/",
+			NULL
+		};
 		for (i = 0; unix_dirs[i] != NULL; i++)
 			if (strncmp (text, unix_dirs[i], strlen (unix_dirs[i]))==0)
 			{
@@ -4477,6 +4490,7 @@ handle_user_input (session *sess, char *text, int history, int nocommand)
 				return 1;
 			}
 	}
+#endif
 
 	return handle_command (sess, text + 1, TRUE);
 }