From 55f202ca9b7aaa2b9c00d7fda677e6c9a0cf90d5 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Wed, 2 Jun 2021 17:31:52 +0100 Subject: [PATCH] aaaaaaaaaaaa --- src/client.zig | 7 ++----- src/main.zig | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/client.zig b/src/client.zig index 1e59976..1c08692 100644 --- a/src/client.zig +++ b/src/client.zig @@ -35,13 +35,10 @@ pub const Client = struct { var map = std.StringHashMap(qvar.QVariant).init(s.allocator); - //try map.put("UseSSL", .{ .byte = 0 }); - //try map.put("UseCompression", .{ .byte = 0 }); - //try map.put("ProtocolVersion", .{ .int = 10 }); try map.put("MsgType", .{ .string = "ClientInit" }); try map.put("ClientVersion", .{ .string = "0.1 (quasselclient)" }); - try map.put("BuildDate", .{ .string = "0" }); - try map.put("ClientFeatures", .{ .int = 0 }); + try map.put("ClientDate", .{ .string = "Wed, 02 Jun 2021 17:30:30 +0100" }); + try map.put("Features", .{ .int = 0 }); var empty = std.ArrayList([]const u8).init(s.allocator); try map.put("FeatureList", .{ .stringlist = empty }); diff --git a/src/main.zig b/src/main.zig index 8c37d30..d640386 100644 --- a/src/main.zig +++ b/src/main.zig @@ -12,5 +12,5 @@ pub fn main() !void { var client = initClient(allocator, &sock); try client.handshake(); try client.quassel_init_packet(); - //try client.quassel_login("z", "PASSWORD"); + try client.quassel_login("z", "PASSWORD"); }