mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
classes: use get_fields() in make_channel_ban() for more reliable substitutions
This commit is contained in:
parent
5a482118b8
commit
6ceaabe092
@ -1411,7 +1411,7 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
|
||||
'*!*@$host'
|
||||
|
||||
template = string.Template(ban_style)
|
||||
banhost = template.safe_substitute(ban_style, **self.users[uid].__dict__)
|
||||
banhost = template.safe_substitute(self.users[uid].get_fields())
|
||||
assert self.is_hostmask(banhost), "Ban mask %r is not a valid hostmask!" % banhost
|
||||
|
||||
if ban_type in self.cmodes:
|
||||
|
Loading…
Reference in New Issue
Block a user