1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-29 18:56:22 +00:00

remove console.log statement and fix behavior for other settings for this plugin

This commit is contained in:
zoey-on-github 2023-12-28 22:20:17 -08:00
parent 4faaa1382e
commit 5f49860fd9

View file

@ -69,18 +69,21 @@ export default definePlugin({
return prefix + nick; return prefix + nick;
if (settings.store.mode === "user-nick") if (settings.store.mode === "user-nick")
if (StreamerMode.enabled) { if (StreamerMode.enabled) {
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}...</span></>; return <>{prefix}{username[0]}... <span className="vc-smyn-suffix">{nick}</span></>;
} else { } else {
return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>; return <>{prefix}{username} <span className="vc-smyn-suffix">{nick}</span></>;
} }
if (settings.store.mode === "nick-user") if (settings.store.mode === "nick-user")
if (StreamerMode.enabled) { if (StreamerMode.enabled) {
console.log("yeah");
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>; return <>{prefix}{nick} <span className="vc-smyn-suffix">{username[0]}...</span></>;
} else { } else {
return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>; return <>{prefix}{nick} <span className="vc-smyn-suffix">{username}</span></>;
} }
return prefix + username; if (StreamerMode.enabled) {
return prefix + username[0] + "...";
} else {
return prefix + username;
}
} catch { } catch {
return author?.nick; return author?.nick;
} }