Replacement for /join

By Soulkeeper on Dec 23, 2007

So, this is just a simple replacement for /join. It has a few extra features, like allowing you to join multiple channels, and it checks for the #. If there is no #, it puts one in.

Enjoy.

alias j {
  var %res = "",%x = 1,%para = $2-
  tokenize 44 $1
  while (%x <= $0) {
    %res = $iif(%res,%res $+ $chr(44)) $+ $eval($+($chr(35),$,%x),2)
    inc %x
  }
  join %res %para
}

Comments

Sign in to comment.
Soulkeeper   -  Dec 27, 2007

See, What I like about this one, though, is if you don\'t have a pound symbol where needed, it adds it. Thus taking it from /join #channel1,#channel2,#channel3 you can do /j channel1,2,3

 Respond  
sunburst   -  Dec 24, 2007

Oh, son! You just got TOLD!
Unless you have some sort of grudge against this person, it really is irritating to act immature and rub a harmless detail into someone\'s face. I am sure this person didn\'t know of that information, thus why he made this snippet. Even though this is pretty simplistic.

 Respond  
SLS10   -  Dec 24, 2007

Oh, son! You just got TOLD!

 Respond  
Freckle   -  Dec 24, 2007

You can already join multiple channels with /join:

/join #channel1,#channel2,#channel3

 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.