summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg2021-09-11 12:09:36 +0200
committerGeorg2021-09-11 12:09:36 +0200
commita321b6584d6dc11ed800cbceef3e68cbc63aac9a (patch)
tree0f2fb3900b04794e1ecdf45e8df8cfc15a81ab2c
parentca02bba8c341b00973497e6f37a8ee34d75fcf0a (diff)
downloadsnoparser-a321b6584d6dc11ed800cbceef3e68cbc63aac9a.tar.gz
snoparser-a321b6584d6dc11ed800cbceef3e68cbc63aac9a.tar.bz2
snoparser-a321b6584d6dc11ed800cbceef3e68cbc63aac9a.zip
Disabling channel validation
Signed-off-by: Georg <georg@lysergic.dev>
-rw-r--r--config.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.py b/config.py
index a585def..0e59428 100644
--- a/config.py
+++ b/config.py
@@ -37,12 +37,12 @@ except:
# without the i18n module
_ = lambda x: x
-class ValidChannel(registry.string):
- """Value must be a valid channel"""
- def setValue(self, v):
- if not (ircutils.isChannel(v)):
- self.error()
- registry.String.setValue(self, v)
+#class ValidChannel(registry.string):
+# """Value must be a valid channel"""
+# def setValue(self, v):
+# if not (ircutils.isChannel(v)):
+# self.error()
+# registry.String.setValue(self, v)
def configure(advanced):
# This will be called by supybot to configure this module. advanced is
@@ -58,8 +58,8 @@ SnoParser = conf.registerPlugin('SnoParser')
# conf.registerGlobalValue(SnoParser, 'someConfigVariableName',
# registry.Boolean(False, _("""Help for someConfigVariableName.""")))
-conf.registerNetworkValue(SnoParser, 'targetChannel', ValidChannel,
- ("", ("""Determines which channel the bot should send snolines""")))
+#conf.registerNetworkValue(SnoParser, 'targetChannel', ValidChannel,
+# ("", ("""Determines which channel the bot should send snolines""")))
conf.registerGlobalValue(SnoParser, 'AutoVhost',
registry.String('libcasa/user/', ("""Configure the vhost eg. libcasa/user/$account""")))