void do_unread_mail(USER_DATA *usr) { if (unread_mail(usr) > 0) print_to_user(usr, "#YMail: %d new mail%s.#x\n\r\n\r", unread_mail(usr), unread_mail(usr) > 1 ? "s" : ""); else send_to_user("Mail: No new mails.\n\r\n\r", usr); if (!IS_TOGGLE(usr, TOGGLE_XING)) send_to_user("You toggle message eXpress Off!\n\r", usr); if (IS_TOGGLE(usr, TOGGLE_IDLE)) send_to_user("You toggle idle mode On!\n\r", usr); }
swsrc_t checkIncDecMovedSwitch(swsrc_t val) { if (s_editMode>0) { swsrc_t swtch = getMovedSwitch(); if (swtch) { div_t info = switchInfo(swtch); if (IS_TOGGLE(info.quot)) { if (info.rem != 0) { val = (val == swtch ? swtch-2 : swtch); } } else { val = swtch; } } } return val; }