From 17174d134de0e9df334a1383ea52f4144a759c21 Mon Sep 17 00:00:00 2001 From: James Vega Date: Thu, 29 Jan 2004 23:51:20 +0000 Subject: [PATCH] Fixed the configure() definition. Fixed Debian.file so that something like "@debian file ntpq" actually works without the user needing meta-characters. --- plugins/Debian.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Debian.py b/plugins/Debian.py index 590bce05f..6543b5c3e 100644 --- a/plugins/Debian.py +++ b/plugins/Debian.py @@ -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: