this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

commands: add /join

+13
+13
src/App.zig
··· 1217 1217 pub const Command = enum { 1218 1218 /// a raw irc command. Sent verbatim 1219 1219 irc, 1220 + join, 1220 1221 me, 1221 1222 msg, 1222 1223 @"next-channel", ··· 1228 1229 pub fn appendSpace(self: Command) bool { 1229 1230 return switch (self) { 1230 1231 .irc, 1232 + .join, 1231 1233 .me, 1232 1234 .msg, 1233 1235 => true, ··· 1274 1276 &buf, 1275 1277 "{s}\r\n", 1276 1278 .{cmd[start + 1 ..]}, 1279 + ); 1280 + return self.queueWrite(client, msg); 1281 + }, 1282 + .join => { 1283 + const start = std.mem.indexOfScalar(u8, cmd, ' ') orelse return error.InvalidCommand; 1284 + const msg = try std.fmt.bufPrint( 1285 + &buf, 1286 + "JOIN {s}\r\n", 1287 + .{ 1288 + cmd[start + 1 ..], 1289 + }, 1277 1290 ); 1278 1291 return self.queueWrite(client, msg); 1279 1292 },