mIRC Home    About    Download    Register    News    Help

Topic Options
#183281 - 19/08/07 12:57 AM Run into another problem. Help please.
Tomao Offline
Hoopy frood

Registered: 07/07/07
Posts: 1129
Loc: United States
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

Top
#183282 - 19/08/07 01:01 AM Re: Run into another problem. Help please. [Re: Tomao]
OrionsBelt Offline
Fjord artisan

Registered: 25/04/06
Posts: 464
Loc: Amsterdam, NL
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 #
}


Top
#183283 - 19/08/07 01:14 AM Re: Run into another problem. Help please. [Re: OrionsBelt]
Tomao Offline
Hoopy frood

Registered: 07/07/07
Posts: 1129
Loc: United States
I still get * /hop: insufficient parameters in my status window.

Top
#183313 - 19/08/07 06:03 AM Re: Run into another problem. Help please. [Re: Tomao]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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

Top
#183315 - 19/08/07 07:00 AM Re: Run into another problem. Help please. [Re: RusselB]
Tomao Offline
Hoopy frood

Registered: 07/07/07
Posts: 1129
Loc: United States
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.

Top