it connects with socket you cant use mirc's events you must take with if then else.. but explanation is good.