From 496d5c4f9de719de739098b30c63252180676255 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Thu, 17 May 2012 07:41:41 +1200 Subject: [PATCH] Updated fortune.py to match other plugins --- plugins/fortune.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/fortune.py b/plugins/fortune.py index ef0390a..5b24ede 100755 --- a/plugins/fortune.py +++ b/plugins/fortune.py @@ -2,13 +2,9 @@ from util import hook import re import random -fortunes = [] - with open("plugins/data/fortunes.txt") as f: - for line in f.readlines(): - if line.startswith("//"): - continue - fortunes.append(line.strip()) + fortunes = [line.strip() for line in f.readlines() + if not line.startswith("//")] @hook.command(autohelp=False)