Hop all channels

By sailoreagle on Feb 07, 2004

Snippet goes in aliases (alt-A). It will part and rejoin all channels you currently are in (keeping windows open) when you type /hopall.

hopall { 
  var %x = $chan(0) 
  while (%x) { 
    hop -c $chan(%x) 
    dec %x 
  } 
}

Comments

Sign in to comment.
Jethro   -  Nov 28, 2009

The code is working the way it is and can also be altered as such:

alias hopall {
  var %x 0  
  while $chan(%x) {
    hop -c $v1
    inc %x
  }
}
 Respond  
Tennou   -  Nov 28, 2009

I am also having the same problem, all i get is an error saying "invalid window" so it seems that its either a bust or your using a different client. Or maybe its just NNscript

 Respond  
Jethro   -  Aug 18, 2009

I don't see why it won't as long as you use the mirc client.

 Respond  
Naruto755   -  Aug 18, 2009

i Use NNScript So i think thats why it doesnt work

 Respond  
Jethro   -  Aug 16, 2009

Did you put it in your aliases? If you choose to put it in your remote, you need to add an alias as such:

alias hopall { 
  var %x = $chan(0) 
  while (%x) { 
    hop -c $chan(%x) 
    dec %x 
  } 
}
 Respond  
Naruto755   -  Aug 16, 2009

This Script Doesnt Work For Me Whats up with that

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.