From 6ceaabe09200b0f6231434bba997dc90eab83335 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 20 Oct 2018 12:29:45 -0700 Subject: [PATCH] classes: use get_fields() in make_channel_ban() for more reliable substitutions --- classes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes.py b/classes.py index a97126d..1efa48d 100644 --- a/classes.py +++ b/classes.py @@ -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: