mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-09-24 11:51:16 -04:00
Attempted confirmation message for /msg sender
This commit is contained in:
parent
a4671ac262
commit
b7681769cb
1
host.go
1
host.go
@ -288,6 +288,7 @@ func (h *Host) InitCommands(c *chat.Commands) {
|
|||||||
|
|
||||||
m := message.NewPrivateMsg(strings.Join(args[1:], " "), msg.From(), target)
|
m := message.NewPrivateMsg(strings.Join(args[1:], " "), msg.From(), target)
|
||||||
room.Send(&m)
|
room.Send(&m)
|
||||||
|
room.Send(message.NewSystemMsg(fmt.Sprintf("[Sent PM to %s]", target.Name()), msg.From()))
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user