You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copyright (c) 2015 by nils_2 <weechatter@arcor.de>
#
# mark buffers as read if there is no new message in a specific time range
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# idea by bascht
#
# 2015-01-25: nils_2, (freenode.#weechat)
# 1.0 : initial release
try:
importweechat
importtime
exceptException:
print("This script must be run under WeeChat.")
print("Get WeeChat now at: http://www.weechat.org/")
quit()
SCRIPT_NAME="automarkbuffer"
SCRIPT_AUTHOR="nils_2 <weechatter@arcor.de>"
SCRIPT_VERSION="1.0"
SCRIPT_LICENSE="GPL"
SCRIPT_DESC="mark buffers as read if there is no new message in a specific time range"
TIMER=None
WEECHAT_VERSION=""
whitelist= []
OPTIONS= { 'whitelist' : ('','comma separated list of buffer to ignore, e.g. freenode.#weechat,freenode.#weechat-de (check name of buffer with : /buffer localvar)'),
'time' : ('3600','time in seconds to mark buffer as read, if there are no new messages'),
'interval' : ('60','how often in seconds to check for messages'),
'clear' : ('all','hotlist = remove buffer from hotlist, unread = set unread marker, all = hotlist & unread'),
'ignore_hidden' : ('on','hidden messages will be ignored (for example "irc_smart_filter" ones)'),
'ignore_query' : ('on','query buffer(s) will be ignored'),