Fixed's Strike's bug in Misc.revision. IT'S STRIKE'S BUG, MIND YOU\! IT ALWAYS HAS BEEN STRIKE'S BUG\!\! DON\'T EVER LET HIM TELL YOU OTHERWISE\!

This commit is contained in:
Jeremy Fincher 2004-02-16 04:10:06 +00:00
parent bdbcd9562c
commit 5c660fd56e

View File

@ -270,8 +270,8 @@ class Misc(callbacks.Privmsg):
if 'supybot' in module.__file__: if 'supybot' in module.__file__:
names[name] = getVersion(module.__revision__) names[name] = getVersion(module.__revision__)
else: else:
for dir in dirs: for dir in conf.supybot.directories.plugins():
if dir in module.__file__: if module.__file__.startswith(dir):
names[name] = getVersion(module.__revision__) names[name] = getVersion(module.__revision__)
break break
L = ['%s: %s' % (k, v) for (k, v) in names.items() if v] L = ['%s: %s' % (k, v) for (k, v) in names.items() if v]