savebuff

From ZNC
Revision as of 19:24, 14 March 2009 by Silverleo (Talk | contribs)
Jump to: navigation, search

This module helps parsing actions which have happened on IRC. It adds JOINs, QUITs etc to the playback buffer with a not-really-human-readable format and it saves those playback buffers across restarts.

It is recommened to be used in combination with a client script or plugin, otherwise the output is pretty much useless or rather annoying. Feel free to make your own script and add it to the wiki. As always, contributions are much appreciated.

Contents

Usage

Arguments

This user module takes no arguments.

Read loading modules to learn more about loading modules.

Savebuff stores information in ~/.znc/users/<user>/savebuff/. The filename is a MD5 hash of the username and channel name (in lowercase).

Client scripts and plugins

There are several scripts and plugins available to parse the actions sent by this module. You can find them below.

Known Issues

Savebuff blocks starting ZNC

What am I supposed to do if I can't start ZNC because the savebuff module fails to decrypt its saved messages?
The easiest way to fix this is to enter the correct password.

The second easiest way is to remove savebuff's saved messages:

rm ~/.znc/users/*/moddata/savebuff/.*

If you only want to remove the messages of some user, use this:

rm ~/.znc/users/<username>/moddata/savebuff/.*

To avoid this error in the future and if you don't have problems with saving the password in the ZNC config file, you can add your password there:

LoadModule = savebuff This is my secret pass

Additional information

Decrypting the buffer from shell

openssl bf-cfb -d -iv 0 -in [file] -K [key]
  • file is found in the users module data folder (~/.znc/users/<username>/moddata/savebuff/)
  • key is an MD5 hash of the passphrase
Personal tools