Show IRCd 'version' string in !specsup output

This commit is contained in:
jesopo 2019-06-29 22:44:05 +01:00
parent 19f716ab4c
commit a64d577644

View file

@ -18,8 +18,9 @@ class Module(ModuleManager.BaseModule):
port = str(server.connection_params.port) port = str(server.connection_params.port)
if server.connection_params.tls: if server.connection_params.tls:
port = "+%s" % port port = "+%s" % port
supporting_servers.append("%s:%s" % ( supporting_servers.append("%s:%s (%s)" % (
server.connection_params.hostname, port)) server.connection_params.hostname, port,
server.version))
if supporting_servers: if supporting_servers:
event["stdout"].write("%s: %s" % (spec, event["stdout"].write("%s: %s" % (spec,
", ".join(supporting_servers))) ", ".join(supporting_servers)))