From 91f5e9acfa679b455e6648cc5ce3bf579053b124 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sun, 7 Jul 2019 19:38:04 -0400 Subject: [PATCH] allowPrivate option --- Frotz/config.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Frotz/config.py b/Frotz/config.py index 951ab95..06522f4 100644 --- a/Frotz/config.py +++ b/Frotz/config.py @@ -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')