mIRC Home    About    Download    Register    News    Help

Print Thread
#201395 27/06/08 12:35 PM
Joined: Jun 2008
Posts: 9
J
Jamezzz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jun 2008
Posts: 9
Ok, this script is for getting unbanned and rejoining the channel which you were kick banned from, here it is..

Code:
on @!*:BAN:#: if $banmask iswm $address($me,5) { cs unban # } 

on $*:NOTICE:/You have been unbanned from (.+)\.$/Si:?:{
  if ($nick == ChanServ) {
    join $regml(1)
  }
}


I want to add something on the end so that, if the channel i'm trying to rejoin is set to invite only and gives me the "# unable to join channel (invite only)", it invites me into the channel, which i just tried to join.

Anyone able to help? Sorry i can't script at all, the original was given to me by a friend.

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
raw 473:*: { cs invite $2 } 


Or

Code:
on *:INVITE:*: if ($nick == ChanServ) { join $chan }


This should work best if you have auto join on invite enabled.


Link Copied to Clipboard