Fixed the configure() definition. Fixed Debian.file so that something like

"@debian file ntpq" actually works without the user needing meta-characters.
This commit is contained in:
James Vega 2004-01-29 23:51:20 +00:00
parent 9423cbc97c
commit 17174d134d
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@ import webutils
import callbacks
def configure(onStart):
def configure(advanced):
# This will be called by setup.py to configure this module. onStart and
# afterConnect are both lists. Append to onStart the commands you would
# like to be run when the bot is started; append to afterConnect the
@ -133,6 +133,8 @@ class Debian(callbacks.Privmsg,
if rest:
glob = rest.pop()
regexp = fnmatch.translate(glob.lstrip('/'))
regexp = regexp.rstrip('$')
regexp += ".* "
try:
re_obj = re.compile(regexp, re.I)
except re.error, e: