mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix for UnboundLocalError in kernel command.
This commit is contained in:
parent
08c9a9c7c6
commit
fa518894cc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user