This script has many funtions easy to use.
Full featured script for IRC Networks
Basic IRC script with the usual stuff