• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#5681 - 08/23/09 12:03 AM Right-click Generic Akill (4 seconds!)
Freelancer Offline
newbie

Registered: 12/20/08
Posts: 44
Loc: USA
Just right-click & hit akill user! You must be an IRCop to do this... >_>

Code:
raw 378:*: {
  set %ip $6
}

menu nicklist {
  -
  .Akill User: {
    whois $1
    timer 1 1 secondcommandforakill
  }
  -
}

alias secondcommandforakill {
  os akill add +3h %ip Please do not do that. This ban will be lifted in three hours.
  unset %ip
}

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#5699 - 08/30/09 06:41 AM Re: Right-click Generic Akill (4 seconds!) [Re: Freelancer]
Phil Offline
Over 200 posts

Registered: 10/23/06
Posts: 205
Loc: Warwick, UK
Flawed script, very prone to failure. E.g. you whois a legitimate user for informational purposes. The IP is stored in the variable. You then run the script to akill another user and experience some server lag which means that the whois reply isn't received within 1 second. Script runs anyway and akills the last legit user that you whois'ed.

The following is significantly better...

Code:
#akillgroup off
raw 378:*: {
  os akill add +3h $6 Please do not do that. This ban will be lifted in three hours.

  disable #akillgroup
}
#akillgroup end

menu nicklist {
  -
  .Akill User: {
    enable #akillgroup
    whois $1
  }
  -
}


Also be sure it's not used in conjunction with any auto whois scripts as it's possible the wrong person will be taken out.

Phil


Edited by Phil (08/30/09 06:45 AM)

Top


Moderator:  Jeff, mandy, usrbingeek