From fafc24c3d0ee677cbb0d269b257c037c5842ce70 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 20 Feb 2016 22:41:00 +0100 Subject: [PATCH] [broker] ALL ABOARD THE USS HAMCHA IS A FUCKING IDIOT --- broker/action.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/broker/action.go b/broker/action.go index 1a2ceb9..7247ca8 100644 --- a/broker/action.go +++ b/broker/action.go @@ -14,5 +14,8 @@ func executeClientCommand(action tg.ClientCommand, client net.Conn) { case tg.CmdGetFile: data := *(action.FileRequestData) api.GetFile(data, client, *action.Callback) + case tg.CmdSendPhoto: + data := *(action.PhotoData) + api.SendPhoto(data) } }