Still request caps in IRC compatibility mode

This commit is contained in:
Dpeta 2023-02-17 20:45:09 +01:00
parent 756099f753
commit a7f266c382
No known key found for this signature in database
GPG key ID: 51227517CEA0030C

6
irc.py
View file

@ -833,8 +833,6 @@ class PesterIRC(QtCore.QThread):
) )
self.connected.emit() # Alert main thread that we've connected. self.connected.emit() # Alert main thread that we've connected.
profile = self.mainwindow.profile() profile = self.mainwindow.profile()
if self.mainwindow.config.irc_compatibility_mode():
return
# Negotiate capabilities # Negotiate capabilities
self._send_irc.cap("REQ", "message-tags") self._send_irc.cap("REQ", "message-tags")
self._send_irc.cap( self._send_irc.cap(
@ -842,7 +840,6 @@ class PesterIRC(QtCore.QThread):
) # <--- Not required in the unreal5 module implementation ) # <--- Not required in the unreal5 module implementation
self._send_irc.cap("REQ", "pesterchum-tag") # <--- Currently not using this self._send_irc.cap("REQ", "pesterchum-tag") # <--- Currently not using this
self._send_irc.cap("REQ", "twitch.tv/membership") # Twitch silly self._send_irc.cap("REQ", "twitch.tv/membership") # Twitch silly
self._send_irc.join("#pesterchum")
# Get mood # Get mood
mood = profile.mood.value_str() mood = profile.mood.value_str()
# Moods via metadata # Moods via metadata
@ -852,6 +849,9 @@ class PesterIRC(QtCore.QThread):
self._send_irc.metadata("*", "sub", "color") self._send_irc.metadata("*", "sub", "color")
self._send_irc.metadata("*", "set", "color", profile.color.name()) self._send_irc.metadata("*", "set", "color", profile.color.name())
# Backwards compatible moods # Backwards compatible moods
if self.mainwindow.config.irc_compatibility_mode():
return
self._send_irc.join("#pesterchum")
self._send_irc.privmsg("#pesterchum", f"MOOD >{mood}") self._send_irc.privmsg("#pesterchum", f"MOOD >{mood}")
def _featurelist(self, _target, _handle, *params): def _featurelist(self, _target, _handle, *params):