mIRC Home    About    Download    Register    News    Help

Print Thread
#162107 15/10/06 01:06 AM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
im not quite sure, but on whisper text commands is it possible to +q the nickname?

e..g

on *:TEXT:.qme:?: mode # +q $nick

im not sure, but # desnt work in whisper on text ?

#162108 15/10/06 01:12 AM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
yeah there is no channel associated with a private message. you can however check if the nick messaging you is on a channel you are on and pass that to your script.

/help $ialchan

wink


billythekid
#162109 15/10/06 02:57 AM
Joined: Oct 2006
Posts: 48
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Oct 2006
Posts: 48
You could use the SIGNAL command...

on *:TEXT:.qme:?:{
var %temp1 = 1
var %temp2 = $comchan($nick,0)
while ( %temp1 < %temp2 ) {
var %temp3 = $comchan($nick,%temp1)
signal QNICK %temp3 $nick
inc %temp1
}
}

on 1:SIGNAL:QNICK: {
mode $1 +q $2
}

This should +q the nick on all channels they are on, that you are in also..

Last edited by Ghozer; 15/10/06 03:00 AM.
#162110 15/10/06 04:27 AM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
yes, i wonder why i dont paramater pass into signals instead of aliases.

confused

btk


billythekid
#162111 15/10/06 06:59 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The same information could be passed to an alias, using the same format as being passed to the signal. In both cases, the channel that's being passed is being generated via $comchan(<nick>,<channel number>), rather than # which returns a single specific channel name, or $null in pm/query messages.

#162112 15/10/06 10:11 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Only thing different of course (at least here) is that the initial script completes before the signals are triggered. not that that takes away from the correctness of what you said.

I wonder why he used a signal here, as if its flooding he was concerned with hes likely to do that anyway. he also failed to do the last channel while needed a <= not <

:-)


Link Copied to Clipboard