good to see such things work, but optimisition in code, sorry to say but i don't think any is there, you are doing the same check over and over and over again, if you were to have that run, over a large netsplit, say 300 users, say goodbye to mIRC for a few minutes if on 1:event:#:{ if (%x = z) { do this | do this | do this } } <- it's only having to evaluate the variable once, not thrice or more as yours has shown in the code

as for your ON QUIT event, not working, $chan will NOT evaluate in that event, try $comchan, or ($nick ison #channel) .. but yes $chan will not work for an on quit event

Last edited by PeteM; 10/02/03 01:21 AM.