mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Made a generated debug value, useful for troubleshooting.
This commit is contained in:
parent
5d2b23811a
commit
8b737865b5
@ -29,6 +29,8 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
###
|
||||
|
||||
__revision__ = "$Id$"
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
@ -574,6 +576,8 @@ def main():
|
||||
###
|
||||
# Write the registry
|
||||
###
|
||||
conf.supybot.debug.generated.setValue('%s; %s' %
|
||||
(__revision__, time.ctime()))
|
||||
if not filename:
|
||||
filename = '%s.conf' % nick
|
||||
registry.close(conf.supybot, filename)
|
||||
|
@ -184,6 +184,7 @@ registerGlobalValue(supybot, 'user',
|
||||
registry.String('Supybot %s' % version, """Determines the user the bot
|
||||
sends to the server."""))
|
||||
|
||||
class Networks(registry.SpaceSeparatedSetOfStrings):
|
||||
registerGlobalValue(supybot, 'networks',
|
||||
registry.SpaceSeparatedSetOfStrings([], """Determines what networks the bot
|
||||
will connect to."""))
|
||||
@ -778,5 +779,9 @@ registerGlobalValue(supybot.debug, 'flushVeryOften',
|
||||
registry.Boolean(False, """Determines whether the bot will automatically
|
||||
flush all flushers *very* often. Useful for debugging when you don't know
|
||||
what's breaking or when, but think that it might be logged."""))
|
||||
registerGlobalValue(supybot.debug, 'generated',
|
||||
registry.String('$Id$; %s' % time.ctime(), """Determines when this
|
||||
configuration file was generated; it should be modified by
|
||||
supybot-wizard"""))
|
||||
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
Loading…
Reference in New Issue
Block a user