mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Current clearbufferonmsg clears buffer on some user actions (OnMsg, OnCTCP, OnAction, OnNotice, OnPart, OnTopic). And user can't change this fixed built-in rule. This built-in rule to clear buffer is too inflexible. So, this extends clearbufferonmsg to satisfy more users on different situations. Add args to clearbufferonmsg to allow that user choose callbacks to clear. msg - clear on OnUserMsg callback ctcp - clear on OnUserCTCP callback action - clear on OnUserAction callback notice - clear on OnUserNotice callback part - clear on OnUserPart callback topic - clear on OnUserTopic callback quit - clear on OnUserQuit callback all - set all options above By default, clear on msg, ctcp, action, notice, part, topic. (except quit for backward compatibility). Example usage in znc.conf: [set all options] LoadModule = clearbufferonmsg all [on quit and part] LoadModule = clearbufferonmsg !all quit part
4.0 KiB
4.0 KiB