Fixed a bug that caused XChat to crash when unloading the script. - Chuong Ngo