3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 12:42:34 +01:00

commands.version: replace license notice with (a much more useful) Python version

This commit is contained in:
James Lu 2020-01-26 13:47:50 -08:00
parent 5c3306bcff
commit b083b6dede

View File

@ -1,4 +1,5 @@
# commands.py: base PyLink commands
import sys
import time
from pylinkirc import __version__, conf, real_version, utils, world
@ -260,7 +261,8 @@ def version(irc, source, args):
"""takes no arguments.
Returns the version of the currently running PyLink instance."""
irc.reply("PyLink version \x02%s\x02 (in VCS: %s), released under the Mozilla Public License version 2.0." % (__version__, real_version))
py_version = utils.NORMALIZEWHITESPACE_RE.sub(' ', sys.version)
irc.reply("PyLink version \x02%s\x02 (in VCS: %s), running on Python %s." % (__version__, real_version, py_version))
irc.reply("The source of this program is available at \x02%s\x02." % world.source)
@utils.add_cmd