tbyte = string.byte("t")
add_hook("key_up","", --key up for most keys, but for ones where you can hold them down use key_down :P (WASD)
function(key)
if(key == tbyte) then
echo("Chat with \"t\" disabled, please use the enter key.")
return 1 -- stops key from being processed by default toribash functions
end
end
)
(yes i got bored enough to highlight it )