mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
RFE #1039510, plugins.LogToIrc.networks.
This commit is contained in:
parent
d72f69d245
commit
a8190dc5da
@ -73,6 +73,9 @@ class IrcHandler(logging.Handler):
|
|||||||
except AttributeError, e:
|
except AttributeError, e:
|
||||||
print '*** AttributeError, shouldn\'t happen: %s' % e
|
print '*** AttributeError, shouldn\'t happen: %s' % e
|
||||||
continue
|
continue
|
||||||
|
networks = conf.supybot.plugins.LogToIrc.networks()
|
||||||
|
if networks and irc.network not in networks:
|
||||||
|
continue
|
||||||
msgOk = True
|
msgOk = True
|
||||||
if target in irc.state.channels:
|
if target in irc.state.channels:
|
||||||
channel = irc.state.channels[target]
|
channel = irc.state.channels[target]
|
||||||
@ -163,6 +166,10 @@ conf.registerGlobalValue(conf.supybot.plugins.LogToIrc, 'targets',
|
|||||||
Targets([], """Determines which channels/nicks the bot should
|
Targets([], """Determines which channels/nicks the bot should
|
||||||
log to. If no channels/nicks are set, this plugin will effectively be
|
log to. If no channels/nicks are set, this plugin will effectively be
|
||||||
turned off."""))
|
turned off."""))
|
||||||
|
conf.registerGlobalValue(conf.supybot.plugins.LogToIrc, 'networks',
|
||||||
|
registry.SpaceSeparatedSetOfStrings([], """Determines what networks the
|
||||||
|
bot should log to. If no networks are set, the bot will log on one network
|
||||||
|
(whichever happens to be around at the time it feels like logging)."""))
|
||||||
conf.registerGlobalValue(conf.supybot.plugins.LogToIrc, 'channelModesRequired',
|
conf.registerGlobalValue(conf.supybot.plugins.LogToIrc, 'channelModesRequired',
|
||||||
registry.String('s', """Determines what channel modes a channel will be
|
registry.String('s', """Determines what channel modes a channel will be
|
||||||
required to have for the bot to log to the channel. If this string is
|
required to have for the bot to log to the channel. If this string is
|
||||||
|
Loading…
Reference in New Issue
Block a user