From 2fb769ab57e6002ba8088075e8977605af1560f2 Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Wed, 31 Oct 2018 10:12:24 +0100 Subject: [PATCH] Fix *%!s(MISSING)* when channel is created --- sam/service/channel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sam/service/channel.go b/sam/service/channel.go index a9fa12ac0..69d7025da 100644 --- a/sam/service/channel.go +++ b/sam/service/channel.go @@ -312,9 +312,9 @@ func (svc *channel) Create(in *types.Channel) (out *types.Channel, err error) { // Create the first message, doing this directly with repository to circumvent // message service constraints if len(out.Topic) == 0 { - svc.scheduleSystemMessage(out, `<@%d> created new %s channel *%s*`, chCreatorID, out.Type) + svc.scheduleSystemMessage(out, `<@%d> created new %s channel *%s*`, chCreatorID, out.Type, out.Name) } else { - svc.scheduleSystemMessage(out, `<@%d> created new %s channel *%s*, topic: %s`, chCreatorID, out.Type, out.Topic) + svc.scheduleSystemMessage(out, `<@%d> created new %s channel *%s*, topic: %s`, chCreatorID, out.Type, out.Name, out.Topic) } _ = msg