Just as Practice40Hours said, I don't think it's possible for someone to forcefully make a player execute commands like /msg, /reply or anything similar. The only thing that would seem likely is that your friend was trolling you.
I've been looking for nothing for years! I hope I win this giveaway, it would be extremely cool to finally get the nothing I've been looking for so long.