few littles changes in documentation and some debug log removed

This commit is contained in:
Nicolas Coevoet 2014-04-14 21:11:37 +02:00
parent d36930152a
commit 490697f6a9
2 changed files with 6 additions and 5 deletions

View File

@ -92,15 +92,18 @@ The bot can have a "reporting channel" like an -ops channel, where it forwards a
You can tweak which information you would like to be forwarded to the reporting channel. Some reporting is activated by default like topic changes, mode changes, etc, some not, like bot's ban/quiet edit/mark etc, take a look at: You can tweak which information you would like to be forwarded to the reporting channel. Some reporting is activated by default like topic changes, mode changes, etc, some not, like bot's ban/quiet edit/mark etc, take a look at:
!hostmask add your_account *!*@something
!admin capability add your_account #myChannel,op
!search supybot.plugins.ChanTracker.announce !search supybot.plugins.ChanTracker.announce
If desired, the bot can send a private message to the op that sets a tracked mode. Note the op must be known as channel's op by the bot; the bot owner automatically has that capability: If desired, the bot can send a private message to the op that sets a tracked mode. Note the op must be known as channel's op by the bot; the bot owner automatically has that capability:
!config channel #myChannel supybot.plugins.ChanTracker.askOpAboutMode True !config channel #myChannel supybot.plugins.ChanTracker.askOpAboutMode True
You can add op capability to someone that way:
!user register opaccount password
!hostmask add opaccount *!*@something
!admin capability add opaccount #myChannel,op
The bot can set a default duration for new tracked mode changes, in order to auto remove them: The bot can set a default duration for new tracked mode changes, in order to auto remove them:
!config channel #myChannel supybot.plugins.ChanTracker.autoExpire 3600 (1h) !config channel #myChannel supybot.plugins.ChanTracker.autoExpire 3600 (1h)

View File

@ -2676,7 +2676,6 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
for change in modes: for change in modes:
(mode,value) = change (mode,value) = change
m = mode[1:] m = mode[1:]
log.debug('%s - %s / %s' % (mode,value,m))
if value: if value:
value = str(value).lstrip().rstrip() value = str(value).lstrip().rstrip()
item = None item = None
@ -2765,7 +2764,6 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
if m in announces: if m in announces:
msgs.append('[%s %s]' % (mode,value)) msgs.append('[%s %s]' % (mode,value))
else: else:
log.debug('%s --> %s' % (m,m in announces))
if n: if n:
n.addLog(channel,'sets %s' % mode) n.addLog(channel,'sets %s' % mode)
if m in announces: if m in announces: