I'm not quite understanding the few examples for the irssi trigger.pl script, who's docs can be found here, on my Ubuntu machine (If that matters for irssi).
I'm trying to:
When a specific user foo joins a specific channel #channel , say 2 things in separate chat messages.
(Such as foo in message 1, and bar in message 2 as if I hit the enter key if I were typing it)
What I have so far:
/trigger add -name "channel_join_chat" -publics -channels "#channel" -joins "foo" -command "Foo" -command "bar"
And I'm not sure how to specify a specific user, as 'foo' is an unknown option to irssi.
I believe this is what you want:
-publicsshould be when someone sends aPRIVMSGto a channel, so you want-joinsto replace that for triggering on aJOIN(NOTE: it doesn't take a parameter which is why you getUnknown option: foo).-masksis used to match users and wants anick!ident@hostmask, so to match the nick only, the mask would befoo!*@*.