auto join channels you have access in

By Korvin on Oct 06, 2007

type /accesschans and you will join the channels you have access in

alias accesschans { .set %accesschans on | .ns alist | .timer 1 5 .unset %accesschans }
on *:NOTICE:*:?: { 
  if (($nick == nickserv) && (%accesschans == on) && ($1 isnum)) {
    .join $2
  }
}

;FOR zad0909:
on *:TEXT:!accesschans:#: { accesschans }

;This is the new one:
alias accesschans { .set %accesschans on | .ns alist | .timeraccesschans 1 5 .unset %accesschans | .timeraccesschannels 1 5 .join %accesschannels [ $+ [ $server ] ] }
on *:NOTICE:*:?: { 
  if (($nick == nickserv) && (%accesschans == on) && ($1 isnum)) {
    if ($2 isin [ %accesschannels [ $+ [ $server ] ] ]) { HALT }
    if ([ %accesschannels [ $+ [ $server ] ] ] == $null) { set %accesschannels [ $+ [ $server ] ] $2 | HALT }
    if ([ %accesschannels [ $+ [ $server ] ] ] != $null) { set %accesschannels [ $+ [ $server ] ] [ %accesschannels [ $+ [ $server ] ] ] $+ , $+ $2 | HALT }
  }
}

Comments

Sign in to comment.
Skeith   -  Aug 25, 2009

is there anyway to block certain channels?

 Respond  
Joshuaxiong1   -  Dec 13, 2007

Not working. I like the first one. The one when I say Korvin you made the best script

 Respond  
Joshuaxiong1   -  Dec 13, 2007

Only gay people say #room or how do I register a server.

 Respond  
Korvin   -  Oct 26, 2007

any comments on the new version?

 Respond  
Korvin   -  Oct 21, 2007

new version =]

 Respond  
guest598594   -  Oct 16, 2007

ah sorry, didnt see the unset, forget about it

 Respond  
guest598594   -  Oct 16, 2007

ah i get it ;)

nice idea korvin

but i dont really get what that variable is for, cuz once u do the alias once, itll always be set as on

 Respond  
Gummo   -  Oct 16, 2007

It joins all, as it performs a command on each line.

 Respond  
guest598594   -  Oct 16, 2007

does this join all of the channels u have acces in or just one?

 Respond  
Tippy   -  Oct 14, 2007

There\'s no errors your pretty good but why keep it a alias?why not show off make it so you have to say !access and then it goes to the area...like this...
on *:TEXT:!access:#: { /join #Rooms_Here }

Just a suggestion..

Regards,

Tippy

 Respond  
Korvin   -  Oct 12, 2007

meh.

 Respond  
Korvin   -  Oct 11, 2007

there u go xD

 Respond  
zad0909   -  Oct 10, 2007

Think you can make this text based?
Where somone says like !joinchans
then it will execute this script.

 Respond  
Korvin   -  Oct 08, 2007

really simple, dont kiss my ass please.

 Respond  
Joshuaxiong1   -  Oct 08, 2007

Korvin you made the best script

 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.