this repo has no description
3
fork

Configure Feed

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

irc: don't whox non-channels

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>

+9
+9
src/App.zig
··· 1335 1335 1336 1336 pub fn whox(self: *App, client: *Client, channel: *irc.Channel) !void { 1337 1337 channel.who_requested = true; 1338 + if (channel.name.len > 0 and 1339 + channel.name[0] != '#') 1340 + { 1341 + const other = try client.getOrCreateUser(channel.name); 1342 + const me = try client.getOrCreateUser(client.config.nick); 1343 + try channel.addMember(other); 1344 + try channel.addMember(me); 1345 + return; 1346 + } 1338 1347 // Only use WHO if we have WHOX and away-notify. Without 1339 1348 // WHOX, we can get rate limited on eg. libera. Without 1340 1349 // away-notify, our list will become stale