From f4fb34dde6b03fdb49f71476d587c5c7f986b565 Mon Sep 17 00:00:00 2001 From: Pawky Languish Date: Sat, 19 Apr 2025 19:07:38 +0000 Subject: idk some changes lol, formatting and stuff --- util.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'util.py') 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) -- cgit 1.4.1-2-gfad0