mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Fixed an AttributeError (connection->conn)
This commit is contained in:
parent
6fa46793a0
commit
4b6f87f195
@ -68,7 +68,7 @@ class ThreadedFunCommands(callbacks.Privmsg):
|
|||||||
"""takes no arguments"""
|
"""takes no arguments"""
|
||||||
conn = telnetlib.Telnet('kernel.org', 79)
|
conn = telnetlib.Telnet('kernel.org', 79)
|
||||||
conn.write('\n')
|
conn.write('\n')
|
||||||
text = connection.read_all()
|
text = conn.read_all()
|
||||||
for line in text.splitlines():
|
for line in text.splitlines():
|
||||||
(name, version) = line.split(':')
|
(name, version) = line.split(':')
|
||||||
if name.find('latest stable') != -1:
|
if name.find('latest stable') != -1:
|
||||||
|
Loading…
Reference in New Issue
Block a user