Fixed bugz0rs in the new version.

This commit is contained in:
Jeremy Fincher 2004-02-07 12:35:58 +00:00
parent 169a69255a
commit 0982ee2638

View File

@ -49,6 +49,7 @@ import irclib
import ircmsgs
import ircutils
import privmsgs
import webutils
import callbacks
class Misc(callbacks.Privmsg):
@ -207,7 +208,7 @@ class Misc(callbacks.Privmsg):
"""
try:
newest = webutils.getUrl('http://supybot.sf.net/version.txt')
newest = 'The newest version available online is %s.' % version
newest ='The newest version available online is %s.'%newest.strip()
except webutils.WebError, e:
self.log.warning('Couldn\'t get website version: %r', e)
newest = 'I could\'t fetch the newest version ' \