aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/kicking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/kicking.cpp')
-rw-r--r--lib/csapi/kicking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/csapi/kicking.cpp b/lib/csapi/kicking.cpp
index e143166a..73ef70ae 100644
--- a/lib/csapi/kicking.cpp
+++ b/lib/csapi/kicking.cpp
@@ -17,8 +17,8 @@ KickJob::KickJob(const QString& roomId, const QString& userId, const QString& re
basePath % "/rooms/" % roomId % "/kick")
{
QJsonObject _data;
- addToJson<>(_data, "user_id", userId);
- addToJson<IfNotEmpty>(_data, "reason", reason);
+ addParam<>(_data, "user_id", userId);
+ addParam<IfNotEmpty>(_data, "reason", reason);
setRequestData(_data);
}