Re: Re: Auto-respons on pm
"XeroXer @ XeroXer" <[email protected]> Tue, 21 Aug 2007 13:52:38 +0200
| Newsgroups | gmane.network.irc.irssi.user |
|---|---|
| Organization | XeroXer.com |
| Message-ID | <[email protected]> |
Hi
Should I create a completely new script with just that in it?
And what should be placed at the ...'s?
I'm not good at the scripting part of irssi but I really want this thing.
Best regards
XeroXer
Athan wrote:
> 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