# HG changeset patch # User Matti Hamalainen # Date 1226587575 -7200 # Node ID 4086088e95dcd5b48fbab9c242a86834f8e17142 # Parent 11b45ba0132f48c7681ff934836a4819b636d768 Alias '/who' to '/listallusers'. diff -r 11b45ba0132f -r 4086088e95dc nnchat.c --- 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);