####################################################
# by wiebe @ QuakeNet
#
# logs G-line / K-line reasons
####################################################

####################################################
# step 1
# put this file in your bot's scripts dir
#
# step 2
# load the script (add "source scripts/glined.tcl" in the eggdrop conf file)
#
# step 3
# go on the partyline (dcc chat with the bot or telnet to it)
#
# step 4
# set console mode +s (.console +s)
####################################################

####################################################
# glined:465
####################################################
bind raw - 465 glined:465
proc glined:465 { s n t } {
  set t [string range [join [lrange [split $t] 1 end]] 1 end]
  putloglev s * "G/K-lined: $t"
}


set scriptdb(glined) {
  "logs G-line and K-line reasons for the bot"
}

