Files
znc/modules/clearbufferonmsg.cpp
OGAWA Hirofumi 85941f87c0 Extend clearbufferonmsg module and some znc commands for flexible buffer clear
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
2015-02-22 04:33:15 +09:00

4.0 KiB