Refactor SplitHeader class (#4276)
* Flatten static functions in anonymous namespace * SplitHeader ctor: Rename param * Header: Remove unnecessary `virtual`s * auto ptr where possible * Add curly braces * Comment twitch room modes * Treat roomModes->slowMode as an integer * Remove unused `this` from lambdas * Add `unsigned int` overload for localizeNumbers * Move thumbnail max age to a constexpr static & set explicit types * Explicitly use `QObject::connect` * Use `empty()` instead of `size()` * Name unused parameters * Move moderation action refreshing logic from SplitHeader to Split
This commit is contained in:
@@ -75,7 +75,21 @@ public:
|
||||
bool submode = false;
|
||||
bool r9k = false;
|
||||
bool emoteOnly = false;
|
||||
|
||||
/**
|
||||
* @brief Number of minutes required for users to be followed before typing in chat
|
||||
*
|
||||
* Special cases:
|
||||
* -1 = follower mode off
|
||||
* 0 = follower mode on, no time requirement
|
||||
**/
|
||||
int followerOnly = -1;
|
||||
|
||||
/**
|
||||
* @brief Number of seconds required to wait before typing emotes
|
||||
*
|
||||
* 0 = slow mode off
|
||||
**/
|
||||
int slowMode = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user