This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help code admin for eggdrop

Old posts that have not been replied to for several years.
Locked
L
Lph
Voice
Posts: 12
Joined: Mon Nov 22, 2004 11:21 am

help code admin for eggdrop

Post by Lph »

i am an administratro in my network.I want to protect my serv by kill some one make bad oper

when server notice -hub.songviet.net- *** Network-Global -- from irc.songviet.net: Failed OPER attempt for [Datinh] by MT (abc@203.210.221.28) (no O:line)

i want to my bot kill nick MT used wrong pass oper of DaTinh

in remote mirc i wrote
on 1:snotice:*:* {
if ($3 == Network-Global) && ($7 == Failed) { kill $12 failed oper for $10 }
}

how i used this ?
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

set myserver hub.songviet.net
bind raw - NOTICE failedoper
proc failedoper {from keyword text} {
  if {$from == $::myserver && [string match "*Failed OPER*" $text]} {
    putserv "KILL  [lindex [split $text] 11] :you are not oper foo"
  }
}
Locked