File: TCL

package info (click to toggle)
bezerk 0.3.2-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 920 kB
  • ctags: 1,027
  • sloc: ansic: 12,291; sh: 1,822; makefile: 92; tcl: 56
file content (43 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (2)
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
Tcl hooks in bezerk - David Welton <davidw@efn.org>
$Id$

Functions:

send_command text

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:-)

Global Variables:

mynick

Current nick.

Bezerk Aliases:

/tcl text

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 globals for current channel.. that kind of stuff
Make the tcl command output go to a window
Make more C tcl commands..