mIRC Homepage
Posted By: Tomao Run into another problem. Help please. - 18/08/07 11:57 PM
Based on Hixxy's code, I have run into a problem...

Code:
on *:JOIN:#: {
  if (smallworld isin $chan) && ($nick($chan,0) >= 2) { refresherr }
}

refresherr { 
  set %chan #
  .timer 1 1 hop %chan #
}


The problem is, the timer takes effect in the status window and then it gives me this message: * /hop: insufficient parameters
The problem is that you are setting the %chan variable in the alias. But you have to set it in the event, and then call it in the alias.

Code:
on *:JOIN:#: {
  if (smallworld isin $chan) && ($nick($chan,0) >= 2) { set -u5 %chan # | refresherr }
}

refresherr { 
  .timer 1 1 hop %chan #
}

Posted By: Tomao Re: Run into another problem. Help please. - 19/08/07 12:14 AM
I still get * /hop: insufficient parameters in my status window.
Posted By: RusselB Re: Run into another problem. Help please. - 19/08/07 05:03 AM
Code:
on *:JOIN:#: {
  if (smallworld isin $chan) && ($nick($chan,0) >= 2) { set -u5 %chan # | refresherr }
}

refresherr { 
  .timer 1 1 hop %chan
}


The # character was still trying to return a channel name in the refresherr alias, which was returning $null
Posted By: Tomao Re: Run into another problem. Help please. - 19/08/07 06:00 AM
Thanks RusselB, but for some reason it still won't trigger. I got the same /hop: insufficient parameters with your edition. When I took out the timer, though, it works again miraculously.
© mIRC Discussion Forums