This PR aims to remove all direct uses of getApp()->twitch, ensuring we can add tests for anything adjacent to TwitchIrcServer
The class and its inheritance is ugly, so this refactor PR is also pretty ugly. To achieve the goal of this PR without making too many changes, I've added getTwitchAbstract() alongside getTwitch() which returns the IAbstractIrcServer of the TwitchIrcServer.
This PR aims to remove all direct uses of
getApp()->twitch
, ensuring we can add tests for anything adjacent toTwitchIrcServer
The class and its inheritance is ugly, so this refactor PR is also pretty ugly. To achieve the goal of this PR without making too many changes, I've added
getTwitchAbstract()
alongsidegetTwitch()
which returns theIAbstractIrcServer
of theTwitchIrcServer
.