From 86e036c3933def22b6ff0eae5bcf9cd7103240e7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 13 Aug 2015 12:48:31 +0200 Subject: command: pass Response object to command callbacks --- src/command/StickerCommands.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/command/StickerCommands.cxx') diff --git a/src/command/StickerCommands.cxx b/src/command/StickerCommands.cxx index 25d354b2e..d04dc0fcd 100644 --- a/src/command/StickerCommands.cxx +++ b/src/command/StickerCommands.cxx @@ -191,10 +191,8 @@ handle_sticker_song(Response &r, Partition &partition, Request args) } CommandResult -handle_sticker(Client &client, Request args) +handle_sticker(Client &client, Request args, Response &r) { - Response r(client); - assert(args.size >= 3); if (!sticker_enabled()) { -- cgit v1.2.3