Jump to content
danger-weses-m8

Ghost Kicker (ircWX Servers)

Recommended Posts

#ghoster on
on *:JOIN:*: {
  if ($me !isop #) || ($var($+(%,haltgk,.,$server,#),1).value) halt
  if ($nick != $me) {
    var %addy, %out, %all, %a, %b, %c, %l | %addy = $address($nick,1) | %all = $ial($+(*,%addy,*),0).nick
    if (%all > 1) { %c = $remove.numbers($nick)
      while (%all > 0) && ($ial($+(*,%addy,*),%all).nick) { %a = $v1 | %b = $remove.numbers(%a) | if (%a ison #) && (%b == %c) %out = %out %a | dec %all }
      if ($numtok(%out,32) > 1) { %b = 0 | while (%b < $numtok(%out,32)) { inc %b | %c = $gettok(%out,%b,32) | .raw KICK # %c $+(:,~,$chr(160),[style) co:#FFFFFF;bgco:#FF0000;b;] Ghosting [/style] Please Refresh Your Browser... } }
    }
  } 
}
#ghoster end
alias remove.numbers { var %a, %b, %l | %a = $1- | %a = $remove(%a,0,_) | %b = 1 | while (%b < 10) { %a = $remove(%a,%b) | inc %b } | return %a }
menu menubar,channel {
  -
  $$iif($group(#ghoster) == on, $style(1) Ghost, Ghost) Kicker: $$iif($group(#ghoster) == on, .dis, .en) $+ able #ghoster
  $$iif($group(#ghoster) == on, $$iif($me isop $active, $$iif($var($+(%,haltgk,.,$server,$active),1).value, $style(1) Halt, Halt) Ghostkick At This Channel)): {
    if ($var($+(%,haltgk,.,$server,$active),1).value) .unset %haltgk. [ $+ [ $+($server,$active) ] ]
    else .set %haltgk. [ $+ [ $+($server,$active) ] ] 1
  }
  -
}

 

Share this post


Link to post
Share on other sites
 
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

Copywrite © 2020 ChainScriptz

×
  • Create New...