EVENT_DISCONNECT
case EVENT_DISCONNECT:
event_send(res, EVENT_DISCONNECT);
event_send(gres, EVENT_DISCONNECT);
else if (param1 == EVENT_DISCONNECT)