Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- menu status,channel,query {
- PROCTETION On Join
- .On:.enable #PROCTETION | echo -a 4* PROCTETION Is ON *
- .Off:.disable #PROCTETION | echo -a 4* PROCTETION Is OFF *
- }
- #PROCTETION on
- ON @!*:JOIN:#test1 {
- if ($0 < 3) { echo 4 -gste [/XACT]: Error, Not enough parameters! | return }
- if (!$istok(kick ban kb kickban,$3,32)) { echo 4 -gste [/XACT]: Error, Incorrect action! | return }
- if ($me !ison $2) { echo 4 -gste [/XACT]: Error, You are NOT on $2 channel! | return }
- if ($me !isop $2) { echo 4 -gste [/XACT]: Error, You are NOT a channel operator on $2 channel! | return }
- if ($1 !ison $2) { echo 4 -gste [/XACT]: Error, User $1 is NOT on $2 channel! | return }
- if ($1 !isreg $2) { echo 4 -gste [/XACT]: Error, User $1 is NOT a regular user on $2 channel! | return }
- var %host = $ial($1).host
- var %ident = $ial($1).user
- if ($4 !== $null) && ($isnum($4)) { var %ban_secs = $4 }
- else { var %secs = 3600 }
- if ($5 !== $null) && ($isnum($5)) && ($5 isnum 0-9) { var %type = $5 }
- else { var %type = 4 }
- if ($6 == $null) { var %reason = [Banned]: Requested! }
- if ($3 == ban) { var %ban = 1 }
- elseif (*.IP iswm %h) {
- if (%ban) { ban $+(-u,%secs) $2 *!*@*. $+ $gettok(%host,3-,46) }
- if (%kick) { kick $2 $1 %reason }
- }
- }
- #PROCTETION end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement