summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-30 19:21:34 -0400
committerJune McEnroe <june@causal.agency>2020-09-30 19:21:34 -0400
commitf3a56b0d014c96b3bbc41308d34f46a1f7b70764 (patch)
treed9da0df66a1fdc63f05fbcf7a8013aa5f6e2d04b /command.c
parentAdd /ops command (diff)
downloadcatgirl-f3a56b0d014c96b3bbc41308d34f46a1f7b70764.tar.gz
catgirl-f3a56b0d014c96b3bbc41308d34f46a1f7b70764.zip
Use WHO for /ops
Accumulate names in a buffer and show away status.
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index efc095c..92f1271 100644
--- a/command.c
+++ b/command.c
@@ -176,8 +176,8 @@ static void commandNames(uint id, char *params) {
 
 static void commandOps(uint id, char *params) {
 	(void)params;
-	ircFormat("NAMES %s\r\n", idNames[id]);
-	replies.ops++;
+	ircFormat("WHO %s\r\n", idNames[id]);
+	replies.who++;
 }
 
 static void commandInvite(uint id, char *params) {