This is a mirror from this location

What? to top

xcdscript is a X-Chat plugin that enables it to use DMDScript (aka JavaScript, ECMAScript) as scripting language. It is written in Digital Mars D language and uses DMDScript implementation of ECMA 262 scripting language. This plugin is one more proof how well D can integrate into the C world.

Why? to top

I've always wanted an IRC client that supports JavaScript-ing. I wanted to script something but I don't want to learn Pearl and I don't even want to imagine Python or TCL. Plus JavaScript is easy, familiar (to C-like and web programmers) and nice.

How? (licence) to top

This is free software and as any free software is provided as-is. Author will not be responsible for anything 'negative' this software may cause. If you use, redistribute or modify it you declare that you have read, understood and accepted this licence agreement ("How?" section).

xcdscript is free and open source. There are no restrictions. I.e. it uses "bobef license" which is: use without restrictions at your own risk.

Notes to top

Platform notes
This is the Win32 version. I don't have linux currently but the source doesn't contain any windoze specific code (except WinMain), so it shouldn't be a problem to compile it for linux. It is tested on X-Chat 2.4.5-2 compiled by Silverex.
Extract the dll into X-Chat's plugin-s directory to load automatically or load it manually.
When the plugin is loaded it registers 4 commands - /XDS_LOAD "C:\myscript.ds" - loads myscript.ds and executes xchat_plugin_init(). /XDS_UNLOAD "C:\myscript.ds" unloads myscript.ds (if it is already loaded) and executes xchat_plugin_deinit(), also removes all hooks for this scripts./XDS_LIST will list all loaded scripts./XDS_APPEND "C:\myscript.ds" will append myscript.ds to the end of xcdscript.txt. xcdscript.txt lays in /home/user/.xchat2 for Linux or C:\Documents and Settings\yourusername\Application Data\X-Chat 2 for Silverex's version. You can edit the file manually. Each line is treated as path to script to be automatically loaded.
For more information go to here and look at the test script in downloads.
Predefined symbols:

Download to top - the plugin binary; 192 Kb. - the plugin source; 8 Kb. - a small script used during testing the plugin; <1 Kb.

Hosted by