leafChat has a powerful scripting system that lets you use basic IRC commands. When you need to include programming logic, you do so with simple Java code - so you don't need to learn a non-standard scripting language that will only be of use for leafChat.
You can use scripts to add new IRC /-commands, new right-click menu options, and automatic handling for IRC events such as incoming text.