mIRC Home    About    Download    Register    News    Help

Print Thread
#21559 30/04/03 12:35 AM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
I have this:

Code:
on 1:TEXT:!rehash:*:{
  msg $target Rehash successful.
  rehash
}


If the person who types !rehash types it in a channel or my query window, how do I know where I should /msg ? $target doesn't seem to work, it always returns my nick.


__________________________
Curiosity killed the cat.
#21560 30/04/03 12:37 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
/msg $chan

#21561 30/04/03 12:38 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
or /msg $nick

#21562 30/04/03 12:42 AM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
HOW do I know whether I should msg $chan or $nick when I have * in the "location" (on 1:TEXT:!rehash:*:{ }) ?!


__________________________
Curiosity killed the cat.
#21563 30/04/03 12:45 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
on 1:TEXT:!rehash:?: {
msg $nick Rehash successful.
rehash
}
on 1:TEXT:!rehash:#: {
msg $chan Rehash successful.
rehash
}
sorry, i missunderstood you

Last edited by MTech; 30/04/03 12:45 AM.
#21564 30/04/03 12:48 AM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
OMG, is this the only way to do it?


__________________________
Curiosity killed the cat.
#21565 30/04/03 12:50 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
yes

Last edited by MTech; 30/04/03 12:51 AM.
#21566 30/04/03 12:55 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Code:
on *:TEXT:!rehash:*:{
  rehash
  msg $iif($target ischan,#,$nick) Rehash successful.
}

#21567 30/04/03 12:59 AM
Joined: Apr 2003
Posts: 61
G
gaui Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Apr 2003
Posts: 61
Nimue rox, MTech sux. laugh


__________________________
Curiosity killed the cat.
#21568 30/04/03 01:00 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
you sux...sux0r

#21569 30/04/03 01:45 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
If you didn't want the help, all you had to do was just ignore the post. The name calling is uneccisary. smirk


-KingTomato
#21570 30/04/03 01:46 AM
Joined: Mar 2003
Posts: 437
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
smile


Link Copied to Clipboard