Simply, write a script for it. What you are describing is not the intended behaviour for eggdrop.I just want to change my whole configurration of eggdrop so that when I have +d set to a user called BADUSER, containing the host *!*@*.comcast.net it'll do that ban, and not the stupid ident one.
How do I change the setting in eggdrop to accept this overall?
Code: Select all
bind join K|K "% *" CustomKick
proc CustomKick {nick host handle channel} {
### Use this if you wish to iterate through the users list of hostmasks
# foreach hm [getuser $handle HOSTS] {
# ...
# }
### To simply ban major domain+tld, use something like this
# set t [split $host "."]
# pushmode $channel +b "*!*@*[join [lrange $t end-1 end] "."]"
### To ban the offending host, use something like this
# set t [split $host "@"]
# pushmode $channel +b "*!*@[lindex $t end]"
}
Code: Select all
# foreach hm [getuser $handle HOSTS] {
# ...
# }
Code: Select all
bind join K|K "% *" CustomKick
proc CustomKick {nick host handle channel} {
### Use this if you wish to iterate through the users list of hostmasks
# foreach hm [getuser $handle HOSTS] {
# ...
# }
### To simply ban major domain+tld, use something like this
#set t [split $host "."]
#pushmode $channel +b "*!*@*[join [lrange $t end-1 end] "."]"
### To ban the offending host, use something like this
set t [split $host "@"]
pushmode $channel +b "*!*@[lindex $t end]"
putserv "KICK $channel $nick :This host has been blacklisted"
}
putlog "Custom Kicker by nickname Loaded"