Skip to content
General IRCX

Join Help

A TG007 community discussion started by JasonK.

Discussion 4 posts
Page 1 of 1
Open
Topic #11072 · 4 published posts · 2,131 views

Hello,

 

I'd like to make an alias to:

 

1. Be able to join multiple channels in the following formats:

 

a.) %#test101,%#test102,%#test103

b.) %#test101 %#test102 %#test103

 

as well as be able just join a single channel /join %#test101

 

2. Check and see if the prefix "%#" is in the beggining of the channel name and if its not to add it in. Ex1. test101 (%#test101)

 

3. If there is a space $chr(32) in the channel name, to automatically add the \b Ex. %#testing this channel (%#testing\bthis\bchannel)

 

I know its lots to ask for but thanks a bunch and I appreciate all your help.

 

Kind regards,

 

Jay

 

If your only making the script for yourself just make a simple lil alias...

 

 

alias connall {

/join %#test101

/join %#test102

/join %#test103

}

 

Just add more rooms if needed or delete and when you start mirc just type /connall

This maynot be the best way but its the easiest if its a personal script...

 

Don't know if this will be what you are looking for, but here it is.

 

alias mjoin {
  var %tok = 1
  while (%tok <= $numtok($1-,44)) {
    join $iif($left($gettok($1-,%tok,44),2) == $chr(37) $+ $chr(35),$gettok($1-,%tok,44),$chr(32) $+ $chr(44) $+ $gettok($1-,%tok,44))
    inc %tok
  }
}

Edited Sep 8, 2008 1:26 PM by Warrior124

This is what I have so far is it messy?

 

  if ($1 == JOIN) { $recent($2) | if ($numtok($2,44) > 1) { var %x 1 | while ($gettok($2,%x,44)) {
        var %c = $ifmatch
        if ($left(%c,2) == $+($chr(37),$chr(35))) { join %c | haltdef }
        else { join $+($chr(37),$chr(35),%c) | haltdef }
        inc %x
      }
    }
  }