mIRC Home    About    Download    Register    News    Help

Print Thread
Run into another problem. Help please. #183281 18/08/07 11:57 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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

Re: Run into another problem. Help please. [Re: Tomao] #183282 19/08/07 12:01 AM
Joined: Apr 2006
Posts: 464
O
OrionsBelt Offline
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
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 #
}


Re: Run into another problem. Help please. [Re: OrionsBelt] #183283 19/08/07 12:14 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
I still get * /hop: insufficient parameters in my status window.

Re: Run into another problem. Help please. [Re: Tomao] #183313 19/08/07 05:03 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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

Re: Run into another problem. Help please. [Re: RusselB] #183315 19/08/07 06:00 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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.