Disabling channel validation
Signed-off-by: Georg <georg@lysergic.dev>
This commit is contained in:
parent
ca02bba8c3
commit
a321b6584d
16
config.py
16
config.py
@ -37,12 +37,12 @@ except:
|
|||||||
# without the i18n module
|
# without the i18n module
|
||||||
_ = lambda x: x
|
_ = lambda x: x
|
||||||
|
|
||||||
class ValidChannel(registry.string):
|
#class ValidChannel(registry.string):
|
||||||
"""Value must be a valid channel"""
|
# """Value must be a valid channel"""
|
||||||
def setValue(self, v):
|
# def setValue(self, v):
|
||||||
if not (ircutils.isChannel(v)):
|
# if not (ircutils.isChannel(v)):
|
||||||
self.error()
|
# self.error()
|
||||||
registry.String.setValue(self, v)
|
# registry.String.setValue(self, v)
|
||||||
|
|
||||||
def configure(advanced):
|
def configure(advanced):
|
||||||
# This will be called by supybot to configure this module. advanced is
|
# This will be called by supybot to configure this module. advanced is
|
||||||
@ -58,8 +58,8 @@ SnoParser = conf.registerPlugin('SnoParser')
|
|||||||
# conf.registerGlobalValue(SnoParser, 'someConfigVariableName',
|
# conf.registerGlobalValue(SnoParser, 'someConfigVariableName',
|
||||||
# registry.Boolean(False, _("""Help for someConfigVariableName.""")))
|
# registry.Boolean(False, _("""Help for someConfigVariableName.""")))
|
||||||
|
|
||||||
conf.registerNetworkValue(SnoParser, 'targetChannel', ValidChannel,
|
#conf.registerNetworkValue(SnoParser, 'targetChannel', ValidChannel,
|
||||||
("", ("""Determines which channel the bot should send snolines""")))
|
# ("", ("""Determines which channel the bot should send snolines""")))
|
||||||
|
|
||||||
conf.registerGlobalValue(SnoParser, 'AutoVhost',
|
conf.registerGlobalValue(SnoParser, 'AutoVhost',
|
||||||
registry.String('libcasa/user/', ("""Configure the vhost eg. libcasa/user/$account""")))
|
registry.String('libcasa/user/', ("""Configure the vhost eg. libcasa/user/$account""")))
|
||||||
|
Loading…
Reference in New Issue
Block a user