Updated defaults for plugins.Encyclopedia.remotedb and plugins.Encyclopedia.alert
This commit is contained in:
parent
6aa0afdf2c
commit
39044a2c16
|
@ -39,6 +39,6 @@ conf.registerGlobalValue(Encyclopedia, 'datadir',
|
|||
conf.registerGlobalValue(Encyclopedia, 'aptdir',
|
||||
registry.String('', 'Path to apt cache directory',private=True))
|
||||
conf.registerChannelValue(Encyclopedia, 'alert',
|
||||
registry.String('ops','factoid name used for alerts'))
|
||||
registry.String(['ops' 'op', 'kops', 'calltheops'],'factoid name(s) used for alerts'))
|
||||
conf.registerChannelValue(Encyclopedia, 'remotedb',
|
||||
registry.String('http://jussi01.com/ubuntu.db', 'Remote location of the master database'))
|
||||
registry.String('http://jussi01.com/web/ubuntu.db', 'Remote location of the master database'))
|
||||
|
|
|
@ -369,7 +369,7 @@ class Encyclopedia(callbacks.Plugin):
|
|||
elif term[0] in ("what", "whats", "what's") or term[0].startswith("what ") or term[0].startswith("what ") or term[0].startswith("whats ") or term[0].startswith("what's "): # Try and catch people saying "what is ...?"
|
||||
ret = "I am only a bot, please don't think I'm intelligent :)"
|
||||
retmsg = term[2]
|
||||
elif lower_text[:4] not in ('info ','find '):
|
||||
elif lower_text[:5] not in ('info ','find '):
|
||||
# Lookup, search or edit?
|
||||
if lower_text.startswith('search '):
|
||||
ret = self.search_factoid(lower_text[7:].strip(), channel)
|
||||
|
|
Loading…
Reference in New Issue