mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 18:48:31 +00:00
4.0.0-rc14.1
* Fixed: Total gifted subs not displaying on gift sub messages.
This commit is contained in:
parent
24a5cd512f
commit
e9d99f0e1c
3 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
|
||||||
FrankerFaceZ.Logger = Logger;
|
FrankerFaceZ.Logger = Logger;
|
||||||
|
|
||||||
const VER = FrankerFaceZ.version_info = {
|
const VER = FrankerFaceZ.version_info = {
|
||||||
major: 4, minor: 0, revision: 0, extra: '-rc14',
|
major: 4, minor: 0, revision: 0, extra: '-rc14.1',
|
||||||
commit: __git_commit__,
|
commit: __git_commit__,
|
||||||
build: __webpack_hash__,
|
build: __webpack_hash__,
|
||||||
toString: () =>
|
toString: () =>
|
||||||
|
|
|
@ -1001,7 +1001,7 @@ export default class ChatHook extends Module {
|
||||||
displayName: e.recipientName
|
displayName: e.recipientName
|
||||||
};
|
};
|
||||||
out.sub_plan = e.methods;
|
out.sub_plan = e.methods;
|
||||||
out.sub_count = e.senderCount;
|
out.sub_total = e.senderCount;
|
||||||
|
|
||||||
//t.log.info('Sub Gift', e, out);
|
//t.log.info('Sub Gift', e, out);
|
||||||
return i.postMessageToCurrentChannel(e, out);
|
return i.postMessageToCurrentChannel(e, out);
|
||||||
|
@ -1048,7 +1048,7 @@ export default class ChatHook extends Module {
|
||||||
displayName: e.recipientName
|
displayName: e.recipientName
|
||||||
};
|
};
|
||||||
out.sub_plan = e.methods;
|
out.sub_plan = e.methods;
|
||||||
out.sub_count = e.senderCount;
|
out.sub_total = e.senderCount;
|
||||||
|
|
||||||
//t.log.info('Anon Sub Gift', e, out);
|
//t.log.info('Anon Sub Gift', e, out);
|
||||||
return i.postMessageToCurrentChannel(e, out);
|
return i.postMessageToCurrentChannel(e, out);
|
||||||
|
|
|
@ -472,7 +472,7 @@ export default class ChatLine extends Module {
|
||||||
const plan = msg.sub_plan || {},
|
const plan = msg.sub_plan || {},
|
||||||
tier = SUB_TIERS[plan.plan] || 1;
|
tier = SUB_TIERS[plan.plan] || 1;
|
||||||
|
|
||||||
const sub_msg = t.i18n.tList('chat.sub.mystery', '%{user} gifted a %{plan} Sub to %{recipient}!', {
|
const sub_msg = t.i18n.tList('chat.sub.mystery', '%{user} gifted a %{plan} Sub to %{recipient}! ', {
|
||||||
user: (msg.sub_anon || user.username === 'ananonymousgifter') ?
|
user: (msg.sub_anon || user.username === 'ananonymousgifter') ?
|
||||||
t.i18n.t('chat.sub.anonymous-gifter', 'An anonymous gifter') :
|
t.i18n.t('chat.sub.anonymous-gifter', 'An anonymous gifter') :
|
||||||
e('span', {
|
e('span', {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue