NejuChat is a python scripting framework for xchat.
Please see the project site.
This project isn't too user-friendly yet, but as far as source packages, it should be very simple to use:
$ python setup.py install
$ cd ~/.xchat
$ ln -s [path to NejuChat]/start.py
~/.xchat/nejuchat/
; hopefully they
are self-explanatory. (They are also created and modified
at runtime, so hopefully you shouldn't need to hand edit
them often.)