OK, now it's working, but when I exit mIRC, it leaves the residue of the previously set switches. I know this is no longer troubleshooting but rather improving upon my script, but this board works both ways, right?

Anyhow, I've set it so it'll go away if I leave a channel normally...but how do I set it so it'll go away on quit and on disconnect?