@killerX This might be what your looking for:
on *:TEXT:?join*:#:{
if (!$(,$+(%,flood,$nick))) {
set -u3 $+(%,flood,$nick)
}
if ($address($nick,2) != $address($me,2)) {
notice $nick You need to be a Moderator of this bot to use this command.
return
}
notice $nick 5Conneting to $2 , Please wait......
if ($2 == $null) {
notice $nick 4Failed14 to join the channel because you didn't provide a channel name!
return
}
if ($me ison $2) {
.timer 1 3 notice $nick 4Failed14 to join $2 because I'm already in that channel!
return
}
set -u5 %!join $+ $2 $chan
join $2
}
else {
.timer 1 3 msg $chan 2Succesfully14 joined channel $chan
}
on *:JOIN:#:{
if ($eval($+(%,!join,$chan),2) != $null) {
.timer 1 3 msg $v1 3Successfully 5joined channel $chan
msg $chan 14I joined this channel because it was requested by the host of this Bot.
unset %!join $+ $chan
}
}
raw 474:*:{
if ($eval($+(%,!join,$2),2) != $null) {
notice Sphex 4Failed 14to join $2 because the bot has been banned from that channel.
unset %!join $+ $chan
}
}