an experimental irc client

irc: add /names command

authored by

Gregory Anders and committed by rockorager.dev 0861e9d4 5d754758

+6
+6
src/App.zig
··· 1242 1242 @"prev-channel", 1243 1243 quit, 1244 1244 who, 1245 + names, 1245 1246 1246 1247 /// if we should append a space when completing 1247 1248 pub fn appendSpace(self: Command) bool { ··· 1332 1333 cmd[e + 1 ..], 1333 1334 }, 1334 1335 ); 1336 + return self.queueWrite(client, msg); 1337 + }, 1338 + .names => { 1339 + if (channel == null) return error.InvalidCommand; 1340 + const msg = try std.fmt.bufPrint(&buf, "NAMES {s}\r\n", .{channel.?.name}); 1335 1341 return self.queueWrite(client, msg); 1336 1342 }, 1337 1343 .@"next-channel" => self.nextChannel(),