allowPrivate option

This commit is contained in:
Gordon Shumway 2019-07-07 19:38:04 -04:00 committed by GitHub
parent d79856abec
commit 91f5e9acfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -23,8 +23,13 @@ def configure(advanced):
# registry as appropriate.
from supybot.questions import expect, anything, something, yn
conf.registerPlugin('Frotz', True)
Frotz = conf.registerPlugin('Frotz')
conf.registerGlobalValue(Frotz, 'dfrotzPath',
registry.String('/usr/local/bin/dfrotz', _("""The path to the dfrotz executable.""")))
conf.registerGlobalValue(Frotz, 'allowPrivate',
registry.Boolean('True', _("""Allow games to be played over private message.""")))
Frotz = conf.registerPlugin('Frotz')