#by wiebe @ QuakeNet

#logs G-line / K-line reasons (silly how eggdrop does not do this by design)

#raw: 465    ERR_YOUREBANNEDCREEP
#format: <source> 465 <target> :<reason>
#info: returned before the connection is closed when G-lined or K-lined
#example: irc.quakenet.org 465 woobie :Connection from your host is refused on this server.

#step 1
#put this file in your bot's scripts dir

#step 2
#and load it in your eggdrop conf file (source scripts/glined.tcl)

#step 3
#get on the partyline (dcc chat with the bot or telnet to it)

#step 4
#set console mode +o (.console +o)

#done

bind raw - 465 glined:raw

proc glined:raw { server numeric text } {
  putlog "G/K-lined: [string trimleft [join [lrange [split $text] 1 end]] :]"
}

