From fa518894cc66b678a03a62d4edc23849d7d2a505 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 19 Aug 2003 16:49:26 +0000 Subject: [PATCH] Fix for UnboundLocalError in kernel command. --- plugins/ThreadedFunCommands.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/ThreadedFunCommands.py b/plugins/ThreadedFunCommands.py index ef4cf3c87..3e8d6d1fc 100644 --- a/plugins/ThreadedFunCommands.py +++ b/plugins/ThreadedFunCommands.py @@ -31,10 +31,6 @@ """ Provides fun/useless commands that require threads. - -Commands include: - dns - kernel """ from baseplugin import * @@ -69,6 +65,8 @@ class ThreadedFunCommands(callbacks.Privmsg): conn = telnetlib.Telnet('kernel.org', 79) conn.write('\n') text = conn.read_all() + stable = 'unkown' + beta = 'unknown' for line in text.splitlines(): (name, version) = line.split(':') if 'latest stable' in name: