mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49: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.
|
Provides fun/useless commands that require threads.
|
||||||
|
|
||||||
Commands include:
|
|
||||||
dns
|
|
||||||
kernel
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from baseplugin import *
|
from baseplugin import *
|
||||||
@ -69,6 +65,8 @@ class ThreadedFunCommands(callbacks.Privmsg):
|
|||||||
conn = telnetlib.Telnet('kernel.org', 79)
|
conn = telnetlib.Telnet('kernel.org', 79)
|
||||||
conn.write('\n')
|
conn.write('\n')
|
||||||
text = conn.read_all()
|
text = conn.read_all()
|
||||||
|
stable = 'unkown'
|
||||||
|
beta = 'unknown'
|
||||||
for line in text.splitlines():
|
for line in text.splitlines():
|
||||||
(name, version) = line.split(':')
|
(name, version) = line.split(':')
|
||||||
if 'latest stable' in name:
|
if 'latest stable' in name:
|
||||||
|
Loading…
Reference in New Issue
Block a user