3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

p10: rename the 'p10_ircd' option to 'ircd', for consistency with ts6

This commit is contained in:
James Lu 2017-07-12 21:32:04 -07:00
parent 3d27e4a347
commit b8a254167c
2 changed files with 3 additions and 2 deletions

View File

@ -318,7 +318,8 @@ servers:
# With this key set to 'generic', neither of these host changing features are enabled
# and a baseline RFC1459 mode set is used. This configuration is not officially supported.
p10_ircd: nefarious
# This option was previously named "p10_ircd" in PyLink 1.2, but that name is now deprecated.
ircd: nefarious
# Determines whether account-based cloaks should be used (someone.users.yournet.org
# format). This should match your IRCd configuration:

View File

@ -695,7 +695,7 @@ class P10Protocol(IRCS2SProtocol):
"""Updates the ident or host of any connected client."""
uobj = self.users[target]
ircd = self.serverdata.get('p10_ircd', 'nefarious').lower()
ircd = self.serverdata.get('ircd', self.serverdata.get('p10_ircd', 'nefarious')).lower()
if self.is_internal_client(target):
# Host changing via SETHOST is only supported on nefarious and snircd.