summary refs log tree commit diff stats
path: root/src/common/inbound.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-08-10 16:51:56 -0400
committerTingPing <tingping@tingping.se>2013-08-10 16:51:56 -0400
commitb2d2187b20c95e8583c53c79cb2830ab22094472 (patch)
treeeadbd10eb398bd1d87cf8548e5318e96bef0a84a /src/common/inbound.c
parent1c30e0c124a5ecbec4ccf86be32e9a234efe5822 (diff)
Only replace variables in connect commands
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r--src/common/inbound.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c
index f57207d1..ec87820a 100644
--- a/src/common/inbound.c
+++ b/src/common/inbound.c
@@ -1450,7 +1450,10 @@ nowindow:
 static int
 inbound_exec_eom_cmd (char *str, void *sess)
 {
-	handle_command (sess, (str[0] == '/') ? str + 1 : str, TRUE);
+	char *cmd;
+
+	cmd = command_insert_vars ((session*)sess, (str[0] == '/') ? str + 1 : str);
+	handle_command ((session*)sess, cmd, TRUE);
 	return 1;
 }