summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2024-03-02 00:44:12 +0000
committerGitHub <noreply@github.com>2024-03-02 00:44:12 +0000
commitb076b5b0ce0cf29b973f3396a8166680b35ccd87 (patch)
tree74bc4b38892a3684143a7d8ef0ed6a1d1f753117 /src/timeline/InputBar.cpp
parentFix binding loop warning (diff)
parentAdd a warning that glitching text can, shockingly, corrupt your message (diff)
downloadnheko-b076b5b0ce0cf29b973f3396a8166680b35ccd87.tar.xz
Merge pull request #1688 from Nheko-Reborn/glitchtext
Add a glitch text command
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index 03ae5658..62d38cf5 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -238,6 +238,8 @@ InputBar::updateTextContentProperties(const QString &t) QStringLiteral("rainbowconfetti"), QStringLiteral("rainfall"), QStringLiteral("msgtype"), + QStringLiteral("glitch"), + QStringLiteral("gradualglitch"), QStringLiteral("goto"), QStringLiteral("converttodm"), QStringLiteral("converttoroom"), @@ -918,6 +920,10 @@ InputBar::command(const QString &command, QString args) rainfall(args); } else if (command == QLatin1String("msgtype")) { customMsgtype(args.section(' ', 0, 0), args.section(' ', 1, -1)); + } else if (command == QLatin1String("glitch")) { + message(utils::glitchText(args)); + } else if (command == QLatin1String("gradualglitch")) { + message(utils::graduallyGlitchText(args)); } else if (command == QLatin1String("goto")) { // Goto has three different modes: // 1 - Going directly to a given event ID