Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on 5:TEXT:*:*: {
- }
- var %string = $strip($1-)
- .tokenize 32 %string
- if ($1 == ~op) {
- if ($2 == $null) {
- .mode $chan +o $nick
- }
- else {
- .mode $chan +o $2
- }
- }
- if ($1 == ~deop) {
- if ($2 == $null) {
- .mode $chan -o $nick
- }
- else {
- .mode $chan -o $2
- }
- }
- if ($1 == ~kick) {
- if ($2 == $null) {
- .msg $chan kick WHO?
- }
- else {
- .kick $chan $2 kicked by $nick $+ : $3-
- }
- }
- if ($1 == ~mode) {
- .mode $chan $2-
- }
- if ($1 == ~kb) {
- .mode $chan +b $address($2,4)
- .kick $chan $2 $3- (BANNED)
- }
- if ($1 == ~kickall) {
- /kickall $chan
- }
- if ($1 == ~allowentry) {
- .mode $chan -k mafboyz
- /msg $chan password removed
- }
- if ($1 == ~addop) {
- if ($2 == $null) {
- /msg $nick add WHO to ops?
- }
- else {
- .auser 5 $address($2, 4)
- }
- }
- if ($1 == ~removeop) {
- if $level($nick > 90) {
- if ($2 == $null) {
- /msg $nick remove WHO to ops?
- }
- else {
- .ruser $address($2, 4)
- .mode $chan -o $2
- }
- }
- else {
- /msg $chan $nick, you aren't part of the official staff... so, yeah... fuck you!
- }
- }
- if ($1 == ~flood) {
- if (%floodactive == on) {
- set %floodactive off
- /msg $chan flood protection DEACTIVATED
- }
- else {
- set %floodactive on
- /msg $chan flood protection ACTIVATED
- }
- }
- if ($1 == ~setflood) {
- var %acb = $2
- .dec %acb
- set %floodlines %acb
- msg $chan Flood lines now set to $2.
- }
- if ($1 == ~topic) { /topic $chan $2- }
- if ($1 == ~status) {
- /bb
- var %a = 1
- var %b = 1
- var %c = KICKALL NAMES:
- while ([ % [ $+ [ c [ $+ [ %a ] ] ] ] ] != $null) {
- inc %a
- }
- while (%b < %a) {
- if (KICKED isin [ % [ $+ [ c [ $+ [ %b ] ] ] ] ]) {
- %c = %c $+ $chr(32) $+ $remove([ % [ $+ [ c [ $+ [ %b ] ] ] ] ], KICKED)
- }
- inc %b
- }
- var %fl = %floodlines 8
- msg $chan FLOOD PROTECTION: %floodactive AT: %fl lines; %c
- }
- on *:MODE:*: {
- if (G isin $1-) {
- .mode $chan -G
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement