3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +01:00

inspircd: bring back extended WHOIS replies via a force_whois_extensions option

This commit is contained in:
James Lu 2017-07-12 08:28:32 -07:00
parent 0e4737e59d
commit cb368439cf
2 changed files with 7 additions and 0 deletions

View File

@ -214,6 +214,10 @@ servers:
# This setting is EXPERIMENTAL as of PyLink 1.2.x.
#encoding: utf-8
# InspIRCd specific option: determines whether we should display WHOIS extensions by overriding
# InspIRCd's default WHOIS formatting. This defaults to true for consistency with PyLink 1.x.
#force_whois_extensions: true
ts6net:
ip: ::1

View File

@ -613,6 +613,9 @@ class InspIRCdProtocol(TS6BaseProtocol):
# <- :70MAAAAAA IDLE 1MLAAAAIG
# -> :1MLAAAAIG IDLE 70MAAAAAA 1433036797 319
if self.serverdata.get('force_whois_extensions', True):
return {'target': args[0], 'parse_as': 'WHOIS'}
# Allow hiding the startup time if set to do so (if both idle and signon time is 0, InspIRCd omits
# showing this line).
target = args[0]