comparison nnchat.c @ 67:4086088e95dc

Alias '/who' to '/listallusers'.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 13 Nov 2008 16:46:15 +0200
parents e763ef5cfd53
children 3ab7751fdad1
comparison
equal deleted inserted replaced
66:11b45ba0132f 67:4086088e95dc
509 } else if (!strncmp(buf, "/to ", 4)) { 509 } else if (!strncmp(buf, "/to ", 4)) {
510 th_free(setTarget); 510 th_free(setTarget);
511 setTarget = strdup(buf + 4); 511 setTarget = strdup(buf + 4);
512 printMsg("Set prv target to '%s'\n", setTarget); 512 printMsg("Set prv target to '%s'\n", setTarget);
513 return 0; 513 return 0;
514 } else if (!strncmp(buf, "/who", 4)) {
515 snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers");
516 buf = tmpBuf;
514 } else if (setPrvMode) { 517 } else if (setPrvMode) {
515 if (setTarget != NULL) { 518 if (setTarget != NULL) {
516 snprintf(tmpBuf, sizeof(tmpBuf), "/prv -to %s -msg %s", setTarget, buf); 519 snprintf(tmpBuf, sizeof(tmpBuf), "/prv -to %s -msg %s", setTarget, buf);
517 buf = tmpBuf; 520 buf = tmpBuf;
518 } else { 521 } else {