tangled
alpha
login
or
join now
rockorager.dev
/
comlink
2
fork
atom
an experimental irc client
2
fork
atom
overview
issues
pulls
pipelines
command: s/irc/quote
rockorager.dev
2 years ago
88e59f64
fb72916f
+3
-3
1 changed file
expand all
collapse all
unified
split
src
App.zig
+3
-3
src/App.zig
···
1223
1223
1224
1224
pub const Command = enum {
1225
1225
/// a raw irc command. Sent verbatim
1226
1226
-
irc,
1226
1226
+
quote,
1227
1227
join,
1228
1228
me,
1229
1229
msg,
···
1235
1235
/// if we should append a space when completing
1236
1236
pub fn appendSpace(self: Command) bool {
1237
1237
return switch (self) {
1238
1238
-
.irc,
1238
1238
+
.quote,
1239
1239
.join,
1240
1240
.me,
1241
1241
.msg,
···
1277
1277
.channel => |channel| channel,
1278
1278
};
1279
1279
switch (command) {
1280
1280
-
.irc => {
1280
1280
+
.quote => {
1281
1281
const start = mem.indexOfScalar(u8, cmd, ' ') orelse return error.InvalidCommand;
1282
1282
const msg = try std.fmt.bufPrint(
1283
1283
&buf,