mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Add Python version to 'supybot --version' and @version.
This commit is contained in:
parent
657b76d174
commit
b6ea53b07a
@ -319,8 +319,9 @@ class Misc(callbacks.Plugin):
|
|||||||
self.log.info('Couldn\'t get website version: %s', e)
|
self.log.info('Couldn\'t get website version: %s', e)
|
||||||
newest = _('I couldn\'t fetch the newest version '
|
newest = _('I couldn\'t fetch the newest version '
|
||||||
'from the Limnoria repository.')
|
'from the Limnoria repository.')
|
||||||
s = _('The current (running) version of this Supybot is %s. %s') % \
|
s = _('The current (running) version of this Supybot is %s, '
|
||||||
(conf.version, newest)
|
'running on Python %s. %s') % \
|
||||||
|
(conf.version, sys.version, newest)
|
||||||
irc.reply(s)
|
irc.reply(s)
|
||||||
version = wrap(thread(version))
|
version = wrap(thread(version))
|
||||||
|
|
||||||
|
@ -135,7 +135,8 @@ def main():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
parser = optparse.OptionParser(usage='Usage: %prog [options] configFile',
|
||||||
version='Supybot %s' % version)
|
version='Supybot %s running on Python%s' %
|
||||||
|
(version, sys.version))
|
||||||
parser.add_option('-P', '--profile', action='store_true', dest='profile',
|
parser.add_option('-P', '--profile', action='store_true', dest='profile',
|
||||||
help='enables profiling')
|
help='enables profiling')
|
||||||
parser.add_option('-n', '--nick', action='store',
|
parser.add_option('-n', '--nick', action='store',
|
||||||
|
Loading…
Reference in New Issue
Block a user