mIRC Home    About    Download    Register    News    Help

Print Thread
#15681 16/03/03 11:20 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
What does On Action does???
Furhter more, If there is a text on a channel, I can retrive the channel the network and the nick who send the text to the channel, but if I get a Notice, I can only retrive the $nick.

Is there a way that I can retrieve the channel that it was said??

Thanks

#15682 17/03/03 12:05 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
on *:text:*:*:/msg $me $nick in $chan said $1
ect ect..

#15683 17/03/03 05:47 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
What does On Action does???

on ACTION is triggered when someone does a /me in a channel.

Quote:
Furhter more, If there is a text on a channel, I can retrive the channel the network and the nick who send the text to the channel, but if I get a Notice, I can only retrive the $nick.

Is there a way that I can retrieve the channel that it was said??

If a notice is sent to a channel (/notice #pokemon) instead of a nickname (/notice PokemonFan) you can use $chan or # to return the channel.

#15684 17/03/03 07:55 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
on *:text:*:*:/msg $me $nick in $chan said $1
will send me a messege for any text in the channel, and will not work with notices.
I know this cause I already tried it.

In respones to:
"If a notice is sent to a channel (/notice #pokemon) instead of a nickname (/notice PokemonFan) you can use $chan or # to return the channel. "

The problem is that the notice is sent to me only, and not to the channel bt one of the users on the channels.
I would like to log all the notices I get, and put them in a text file which will also say in which channel it happened.

Can't I somehow retrieve the channel from the notice??

Last edited by saragani; 17/03/03 07:57 PM.
#15685 17/03/03 08:17 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
If a notice is sent to you only then it doesn't happen in a channel, so the answer is no.

The only thing close to that is $comchan($nick,1) which would return the first channel that you were in with the person who sent you the notice.

#15686 17/03/03 08:23 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
Ok, thanks. I might try it.

The problem is that the notice is sent to me, but it is apears in the channel that he is in (so if I'm in another channel too, I will get a bip noise which tell me that someone send me a provate message), so I asumed that I can retrieve the channel from it.

I will try the $comchan($nick,1) though, cause it looks promissing.

Thanks. laugh


#15687 17/03/03 08:29 PM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
ya but i said ect ect...
just replace text with notice or action

tada.

#15688 17/03/03 08:31 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
MTech, I know how to use On text and On notice, but what I claim is that I can not retreive the $chan from the notice (it can only be done with On text).

#15689 17/03/03 08:33 PM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
oh....my bad...i need to refresh up on my scripting....*really*

#15690 17/03/03 08:36 PM
Joined: Feb 2003
Posts: 282
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
Thanks MTech for your help :-)

#15691 17/03/03 08:41 PM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
ne time...


now i just need somone to help me with my 'backgrounds' post...

lol


Link Copied to Clipboard