Ornek: !invite nick [mesaj]
Kodumuz:
on @*:TEXT:!invite *:#: {
if ($2 ison $chan) { NOTICE $nick $2 is already on $chan $+ . | return }
set %invite.chan $chan
set %invite.nick $gettok($2,1,44)
set %invite.msg You has been invited on $chan by $nick to /join -i ( $+ $iif($3-,$3-,no message given) $+ ).
set %invite.by $nick
raw INVITE %invite.nick $chan
}
raw 341:$($me %invite.nick %invite.chan): {
raw NOTICE %invite.nick : %invite.msg
raw NOTICE %invite.by : Succefully invited $2 to join $3 $+ .
unset %invite.*
}
raw 401:*: {
if (%invite.nick) {
if ($3-5 === No such nick) { raw NOTICE %invite.by : $2 $3-5 }
elseif ($3-5 === Target left mirc.) { raw NOTICE %invite.by : $3- }
unset %invite.*
}
}