Open marmotz opened 9 years ago
Actually a mention IS a message, another event is just used to be able to catch it as a specific message (because it is) and display it in another way than a "simple" message.
Thank you to be agree with me : mention IS a message. So I want to catch all messages in "message" event, even if I was mentioned ☺
Ok now i see exactly what you want ^^
You can see my reimplementation of Client::_run method and especially my rewrite of PRIVMSG messages: https://github.com/marmotz/WallIrc/blob/master/src/Irc/Client.php#L147-L178
Although, I added nick, notice, part and quit management.
@marmotz Please, make a PR.
with all my code ?
@marmotz You said it's done. Well, do a PR :-).
Still up?
IMHO, you should fire a mention AND a message event and maybe specify when a message is a mentionned message, too.