X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.cpp;h=8ab8dce9659dcc52583b6131084f81349b5382cf;hp=1e00426dfdc47ba4938ea4a4a4881b63b3033b1e;hb=e14649614fbbf9b386505a5d782b88b1ac313c1f;hpb=d030c159599a22c9023b8f0d34909d3277707f52 diff --git a/src/core/coreuserinputhandler.cpp b/src/core/coreuserinputhandler.cpp index 1e00426d..8ab8dce9 100644 --- a/src/core/coreuserinputhandler.cpp +++ b/src/core/coreuserinputhandler.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -769,7 +769,8 @@ void CoreUserInputHandler::handleSetkey(const BufferInfo& bufferInfo, const QStr typeByTarget(bufname), bufname, tr("[usage] /setkey sets the encryption key for nick or channel. " - "/setkey when in a channel or query buffer sets the key for it.") + "/setkey when in a channel or query buffer sets the key for it. " + "Prefix by cbc: or ebc: to explicitly set the encryption mode respectively. Default is CBC.") )); return; } @@ -798,6 +799,12 @@ void CoreUserInputHandler::handleSetkey(const BufferInfo& bufferInfo, const QStr #endif } +void CoreUserInputHandler::handleSetname(const BufferInfo& bufferInfo, const QString& msg) +{ + Q_UNUSED(bufferInfo) + emit putCmd("SETNAME", serverEncode(msg)); +} + void CoreUserInputHandler::handleShowkey(const BufferInfo& bufferInfo, const QString& msg) { QString bufname = bufferInfo.bufferName().isNull() ? "" : bufferInfo.bufferName();