summary refs log tree commit diff
path: root/util.py
diff options
context:
space:
mode:
authorPawky Languish2025-04-19 19:07:38 +0000
committerPawky Languish2025-04-19 19:07:38 +0000
commitf4fb34dde6b03fdb49f71476d587c5c7f986b565 (patch)
treeef8cc174c413dcd766754bc51c52b9a2fc328e5c /util.py
parent12062621d6d67adb8abee962f4201e2d5196f55b (diff)
idk some changes lol, formatting and stuff HEAD master
Diffstat (limited to 'util.py')
-rw-r--r--util.py8
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)