diff options
author | Pawky Languish | 2025-04-19 19:07:38 +0000 |
---|---|---|
committer | Pawky Languish | 2025-04-19 19:07:38 +0000 |
commit | f4fb34dde6b03fdb49f71476d587c5c7f986b565 (patch) | |
tree | ef8cc174c413dcd766754bc51c52b9a2fc328e5c /util.py | |
parent | 12062621d6d67adb8abee962f4201e2d5196f55b (diff) |
Diffstat (limited to 'util.py')
-rw-r--r-- | util.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/util.py b/util.py index 8538ef3..6525160 100644 --- a/util.py +++ b/util.py @@ -78,9 +78,7 @@ class Util: def action(self, msg: str, t=None): t, msg = self._m(msg, t) - self.send( - irctokens.build("PRIVMSG", [t, "\x01ACTION " + str(msg) + "\x01"]).format() - ) + self.send(irctokens.build("PRIVMSG", [t, "\x01ACTION " + str(msg) + "\x01"]).format()) def notice(self, msg: str, t=None): t, msg = self._m(msg, t) @@ -89,7 +87,5 @@ class Util: def maskmatch(self, string: str, hostmask: str): """DOES NOT HANDLE CASEMAPPING (yet), just dumb case-sensitive match, only ? and * are special""" print("string is", string, "and hostmask is", hostmask) - pat = "[[]".join( - [x.replace("]", "[]]") for x in hostmask.split("[")] - ) # escape all [ and ] into [[] and []] + pat = "[[]".join([x.replace("]", "[]]") for x in hostmask.split("[")]) # escape all [ and ] into [[] and []] return fnmatchcase(string, pat) |