/msg: Send SystemMsg confirmation with each PM

This commit is contained in:
Micheal Winger 2016-08-06 23:56:24 -04:00 committed by Andrey Petrov
parent 66adee6f9a
commit 91c62966fa

View File

@ -288,6 +288,10 @@ func (h *Host) InitCommands(c *chat.Commands) {
m := message.NewPrivateMsg(strings.Join(args[1:], " "), msg.From(), target)
room.Send(&m)
txt := fmt.Sprintf("[Sent PM to %s]", target.Name())
ms := message.NewSystemMsg(txt, msg.From())
room.Send(ms)
return nil
},
})
@ -310,6 +314,10 @@ func (h *Host) InitCommands(c *chat.Commands) {
m := message.NewPrivateMsg(strings.Join(args, " "), msg.From(), target)
room.Send(&m)
txt := fmt.Sprintf("[Sent PM to %s]", target.Name())
ms := message.NewSystemMsg(txt, msg.From())
room.Send(ms)
return nil
},
})