I have made a script with !join #channel, !part #channel

- Code: Select all
on *:text:!join*:#:{
if ($nick == %nick) {
if ($me ison $2) {
msg $chan 4,1[ 7Channels 4] - 11You know i'm there? So i'm already in $2 $+ 4.
}
if ($2 == %chan1 || $2 == %chan2 || $2 == %chan3) {
msg $chan 4,1[ 7Suspend 4,1] - 7I don't wanna go there! I'm not going to be in $2 $+ 4.
}
else {
join $2
}
}
}
on *:text:!part*:#:{
if ($nick == %nick) {
if ($me !ison $2) {
msg $chan 4,1[ 7Channels 4,1] - 7I don't know what is this channel, i'm not in $2 $+ 4.
}
else {
part $2
}
}
}
menu * {
Set Nick Admin access
..Set nick: set %nick $$?="Enter The nick Here. (Example: FunnyGuy)"
}
menu * {
Set Suspend Chans
..Set Chan1: set %chan1 $$?="Chan1 Enter Channel here: (Example: #MyOcen)"
..Set Chan2: set %chan2 $$?="Chan2 Enter Channel here: (Example: #MyOcen)"
..Set Chan3: set %chan3 $$?="Chan3 Enter Channel here: (Example: #MyOcen)"
I have tested it..
It works great!
Any bug or problem..
Post here.
Have fun!

P.S. Do not change anything or the script will not work! Thanks!
StareX.