tcl.tcl provides TCL debugging capabilities in an IRC channel. You can evaluate your code by typing % code and sBNC will present you the result in the channel.
You need to set the account for which tcl.tcl will be loaded using setctx.
Example for loading tcl.tcl and using setctx in sbnc.tcl:
setctx "exampleaccount" source "scripts/tcl.tcl"
Furthermore you need to add a user in the account (via adduser) that uses tcl.tcl and give that user the necessary flag(s) (via chattr).
Example for adding a user in “exampleaccount” and adding the flag:
/sbnc tcl setctx exampleaccount; adduser handle hostmask /sbnc tcl setctx exampleaccount; chattr handle +n
Where everybody matching hostmask will have access to handle, and therefore to the debugging capabilities.