From 34dacaea70becbe413b99d80b14ad384c9a020a7 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Sun, 12 Feb 2023 18:28:21 +0100 Subject: [PATCH] Fix outdated PesterIRC args (+black) --- irc.py | 3 +-- pesterchum.py | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/irc.py b/irc.py index 40225b0..41e615f 100644 --- a/irc.py +++ b/irc.py @@ -787,8 +787,7 @@ class PesterIRC(QtCore.QThread): cur = l else: modes.append("{}{}".format(cur, l)) - for (i, m) in enumerate(modes): - + for i, m in enumerate(modes): # Server-set usermodes don't need to be passed. if (handles == [""]) & (("x" in m) | ("z" in m) | ("o" in m)) != True: try: diff --git a/pesterchum.py b/pesterchum.py index 855e6ba..8248f57 100755 --- a/pesterchum.py +++ b/pesterchum.py @@ -4320,6 +4320,7 @@ class MainProgram(QtCore.QObject): self.attempts = 0 # but it's at least better than the way it was before. + # FIXME: we should not pass widget here self.irc = PesterIRC( self.widget, self.widget.config.server(), @@ -4498,7 +4499,11 @@ class MainProgram(QtCore.QObject): stop = None if stop is None: self.irc = PesterIRC( - self.widget.config, self.widget, verify_hostname=verify_hostname + self.widget, + self.widget.config.server(), + self.widget.config.port(), + self.widget.config.ssl(), + verify_hostname=verify_hostname, ) self.connectWidgets(self.irc, self.widget) self.irc.start()