Re: Auto-respons on pm
Athan <[email protected]> Mon, 20 Aug 2007 13:52:32 +0100
| Newsgroups | gmane.network.irc.irssi.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Aug 18, 2007 at 11:21:13PM +0200, XeroXer @ XeroXer wrote:
> Hi there
> I am looking for a feature that many BNC's provide.
> As soon as someone PM's me I want to start the conversation with a
> certain string.
>
> Let's say I want everyone that PM's me to see the text:
> "Hi there! I will get to you as soon as I can, please type your full
> question here so that I may help you faster"
>
> Not just when I am away but all the time, so people know this.
> Is there a addon or maybe just a function that does this?
All you should need is a quick script like:
...
sub new_query_response
{
my ($data, $server, $witem) = @_;
$query_nick = ${$data}{'name'};
...
}
Irssi::signal_add_last('query created', \&new_query_response);
HTH,
-Ath
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGyY6QIr2uvLNOS8MRAt5BAJ40WtJJfczB8FEo4LI89Wt4SBesywCfU7F2 iaq3WaVLDl2J8bPUyESFw+Y= =Elu/ -----END PGP SIGNATURE-----