summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2015-01-07 13:42:42 -0800
committerArnavion <arnavion@gmail.com>2015-01-07 13:42:42 -0800
commit99f74e8d9480e804ebe4c9a08885a81286954114 (patch)
tree359fdc1fba6dd677f772f1cea205686b5b34b0f9 /src
parent5ca87b3c8dc253c1618676455eded22b9c00ae78 (diff)
Also print the command that wasn't recognized.
Diffstat (limited to 'src')
-rw-r--r--src/common/outbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index fab573e4..0e63f899 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -4749,13 +4749,13 @@ handle_command (session *sess, char *cmd, int check_spch)
 	}
 	else
 	{
-		/* unknown command, just send it to the server and hope */
 		if (!sess->server->connected)
 		{
-			PrintText (sess, _("Unknown Command. Try /help\n"));
+			PrintTextf (sess, _("Unknown Command %s. Try /help\n"), word[1]);
 		}
 		else
 		{
+			/* unknown command, just send it to the server and hope */
 			sess->server->p_raw (sess->server, cmd);
 		}
 	}