weechat znc playback
yeah. i still use irc. tested and true. typical config is to use znc for this and connect a client. weechat is a nice client to use in a shell. so i wanted the playback to work correctly. this assumes that you have weechat connected to znc already. there are a few things that make it a little nicer for playback.
** in weechat **
/script
look for the zncplayback script
alt+i to install and autoload. if you don't see "a" then alt+A (capital A)
ia r zncplayback.py 0.2.2 0.2.2 2022-02-05 | Add support for the ZNC Playback module.
/set
irc.server_default.capabilities string "account-notify,away-notify,cap-notify,multi-prefix,server-time,znc.in/self-message,znc.in/playback"
plugins.var.python.zncplayback.servers string "server"
** or if you have more than one server using znc...
plugins.var.python.zncplayback.servers string "server1,server2,server3"
logger.look.backlog integer 5000
relay.irc.backlog_max_number integer 0
relay.irc.backlog_since_last_disconnect boolean on
logger.file.color_lines boolean on
logger.file.flush_delay integer 0
logger.look.backlog integer 5000
irc.look.buffer_open_before_join boolean on
irc.look.buffer_switch_autojoin boolean off
irc.look.display_extended_join boolean off
irc.look.display_host_join boolean off
irc.look.display_host_join_local boolean off
irc.look.display_join_message string ""
** DON'T FORGET TO SAVE **
/save
that should just about do it. weechat logs channels to files. so with the zncplayer plugin it will replay local backlog then begin replaying what you missed from when znc quit / disconnected / whatever. this is probably the smoothest transition i’ve been able to get with this so it looks a little more seamless and displays playback as expected. the logger.file.color_lines is optional but it keeps things uniform. you can probably turn that off i you want to be able to quickly identify the backlog vs the znc playback but i tend to just care that it all looks the same.
i got rid of the join message stuff too. these are the topic and user count nonsense that pop up every time you join a channel. the problem is that when you start weechat it assumes it is a typical irc server connect. i guess it is. but that stuff makes the znc playback look ugly so i just got rid of all of them by making it “”. by default you’ll see a bunch of numbers there.