First, If you use my owner system:
on owner:TEXT:!connecth*:#:{
if ($2 == $null || $3 == $null) {
notice $nick Syntax: !connecth < Name of bot > < Channel to join >
}
else {
server -m $server -i $me $+ ` $+ $$2 -j $$3
notice $nick Bot $$2 Connected and joined $$3
}
}
Or if you don't use my owner system:
on *:TEXT:!connecth*:#:{
if ($nick == yournamehere) {
if ($2 == $null || $3 == $null) {
notice $nick Syntax: !connecth < Name of bot > < Channel to join >
}
else {
server -m $server -i $me $+ ` $+ $$2 -j $$3
notice $nick Bot $$2 Connected and joined $$3
}
}
}