This commit is contained in:
Jeremy Fincher 2003-04-14 14:56:59 +00:00
parent 71cec26d58
commit 8d6174aeaa

View File

@ -172,7 +172,7 @@ class MiscCommands(callbacks.Privmsg):
else:
filenames = os.listdir(conf.logDir)
result = []
for file in os.listdir(conf.logDir):
for file in filenames:
if file.endswith('.log'):
stats = os.stat(os.path.join(conf.logDir, file))
result.append((file, str(stats.st_size)))