mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Apr 2006
Posts: 464
O
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 #
}


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.

Joined: Aug 2004
Posts: 7,252
R
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

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.


Link Copied to Clipboard