changeset 67:4086088e95dc

Alias '/who' to '/listallusers'.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 13 Nov 2008 16:46:15 +0200
parents 11b45ba0132f
children 3ab7751fdad1
files nnchat.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Thu Nov 13 13:22:17 2008 +0200
+++ b/nnchat.c	Thu Nov 13 16:46:15 2008 +0200
@@ -511,6 +511,9 @@
 		setTarget = strdup(buf + 4);
 		printMsg("Set prv target to '%s'\n", setTarget);
 		return 0;
+	} else if (!strncmp(buf, "/who", 4)) {
+		snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers");
+		buf = tmpBuf;
 	} else if (setPrvMode) {
 		if (setTarget != NULL) {
 			snprintf(tmpBuf, sizeof(tmpBuf), "/prv -to %s -msg %s", setTarget, buf);