1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Bezerk TCL Scripting Support
----------------------------
Preliminary TCL support has been done by David Welton <davidw@cks.com>
I've basically just merged David's patch straigth in, with changes just to
allow it to be disabled :-)
The TCL support is disabled by default, as it requires access to the file
bezerk.tcl at run-time, and I haven't sorted out the installation of this
file yet.
To enable TCL support, configure Bezerk with the following command:
./configure --enable-tcl
This will check for the appropriate libraries.
Then you can type 'make' to compile in the usual way. You'll have to run
Bezerk from a directory that contains the file 'bezerk.tcl'
-------
Tcl hooks in bezerk - David Welton <davidw@efn.org>
Functions:
send_command ........
Sends a raw irc command to the server.
send_command "privmsg $chan :hi guys, look at this great client"
on "hookname" "funcname"
Attaches 'funcname' to 'hookname', as defined in btcl.h
on privmsgme respond
off hookname
Free's hookname, erasing anything that was attached to it.
gtkputs "text"
Outputs text to GTK window. Not very complex so far.. only does white:-)
Bezerk Aliases:
/tcl .............
Eval's the text. Useful to pass things into the tcl interpreter from
the irc client.
TODO:
Hooks for numerics.
Replace the alias stuff completely?
make some variables for current channel.. that kind of stuff
Make more C tcl commands..
Maybe make some gtk bindings for tcl things. Project in its own right:-)
|