Put this in your remotes. To open your remote section, press alt+r.
If you want to put this in your aliases section, remove ' alias ' before go.
Usage:
/go
You don't have to put a # before the channel. It will do this for you if you left it out. Just an improvement that can be added to scripts to make it easy for newer users to join channels, or used on it's own to make it a little bit easier.
alias go {
if ($1 == $null) { echo -a You need to include a channel name. | halt }
if ($chr(35) !isin $1-) { join $chr(35) $+ $1- | halt }
join $1-
}
;Commented Version:
alias go {
;Checks to see if you specified a channel to join.
;If not, echo's that you need to include one. Halts script.
if ($1 == $null) { echo -a You need to include a channel name. | halt }
;Checks to see if the # sign isn't in front of the name.
;If not, adds # sign and joins channel. Halts script.
;$chr(35) is the # sign.
if ($chr(35) !isin $1-) { join $chr(35) $+ $1- | halt }
;If there is a channel specified, and there is a # sign in front,
;It does a regular join.
join $1-
}
correction. This one echoes that you need to include a channel to join. Just in case you forget you need to specify that. ;p
However this alias will prevent you from using it to join local server channels that use the & prefix. ie. &help as oppose to #help. So not only is it pretty useless, in some cases it can be counter productive. /go &help would try to put you in #&help