rprintf(COLOR_YELLOW"User "COLOR_RED"%s %s"COLOR_YELLOW" is typing....\n"COLOR_NORMAL,U->user.first_name,U->user.last_name);
}
}
break;
caseCODE_update_chat_user_typing:
{
intchat_id=fetch_int();
intid=fetch_int();
unionuser_chat*C=user_chat_get(-chat_id);
unionuser_chat*U=user_chat_get(id);
if(U&&C){
rprintf(COLOR_YELLOW"User "COLOR_RED"%s %s"COLOR_YELLOW" is typing in chat %s....\n"COLOR_NORMAL,U->user.first_name,U->user.last_name,C->chat.title);
}
}
break;
caseCODE_update_user_status:
{
intuser_id=fetch_int();
unionuser_chat*U=user_chat_get(user_id);
if(U){
fetch_user_status(&U->user.status);
rprintf(COLOR_YELLOW"User "COLOR_RED"%s %s"COLOR_YELLOW" is now %s\n"COLOR_NORMAL,U->user.first_name,U->user.last_name,(U->user.status.online>0)?"online":"offline");