mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-18 08:02:51 +01:00
inspircd: bring back extended WHOIS replies via a force_whois_extensions option
This commit is contained in:
parent
0e4737e59d
commit
cb368439cf
@ -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
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user