mIRC Homepage
Posted By: gaui on TEXT - 30/04/03 12:35 AM
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.
Posted By: MTech Re: on TEXT - 30/04/03 12:37 AM
/msg $chan
Posted By: MTech Re: on TEXT - 30/04/03 12:38 AM
or /msg $nick
Posted By: gaui Re: on TEXT - 30/04/03 12:42 AM
HOW do I know whether I should msg $chan or $nick when I have * in the "location" (on 1:TEXT:!rehash:*:{ }) ?!
Posted By: MTech Re: on TEXT - 30/04/03 12:45 AM
on 1:TEXT:!rehash:?: {
msg $nick Rehash successful.
rehash
}
on 1:TEXT:!rehash:#: {
msg $chan Rehash successful.
rehash
}
sorry, i missunderstood you
Posted By: gaui Re: on TEXT - 30/04/03 12:48 AM
OMG, is this the only way to do it?
Posted By: MTech Re: on TEXT - 30/04/03 12:50 AM
yes
Posted By: Nimue Re: on TEXT - 30/04/03 12:55 AM
Code:
on *:TEXT:!rehash:*:{
  rehash
  msg $iif($target ischan,#,$nick) Rehash successful.
}
Posted By: gaui Re: on TEXT - 30/04/03 12:59 AM
Nimue rox, MTech sux. laugh
Posted By: MTech Re: on TEXT - 30/04/03 01:00 AM
you sux...sux0r
Posted By: KingTomato Re: on TEXT - 30/04/03 01:45 AM
If you didn't want the help, all you had to do was just ignore the post. The name calling is uneccisary. smirk
Posted By: MTech Re: on TEXT - 30/04/03 01:46 AM
smile
© mIRC Discussion Forums