core: Improve setkey usage output
authoralturiak <1785173+alturiak@users.noreply.github.com>
Tue, 4 Sep 2018 19:10:37 +0000 (21:10 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 4 Nov 2020 07:51:22 +0000 (08:51 +0100)
Provide information about available encryption modes and prefixes
in /setkey's usage output.

src/core/coreuserinputhandler.cpp

index 0b6e5b7..82c2b90 100644 (file)
@@ -769,7 +769,8 @@ void CoreUserInputHandler::handleSetkey(const BufferInfo& bufferInfo, const QStr
             typeByTarget(bufname),
             bufname,
             tr("[usage] /setkey <nick|channel> <key> sets the encryption key for nick or channel. "
-               "/setkey <key> when in a channel or query buffer sets the key for it.")
+               "/setkey <key> when in a channel or query buffer sets the key for it. "
+               "Prefix <key> by cbc: or ebc: to explicitly set the encryption mode respectively. Default is CBC.")
         ));
         return;
     }