Avoiding people with colds and other infections may reduce the risk of irritability due to these causes. Many cases cannot be prevented, such as those due to cancer.
Long-term effects depend on the cause of the irritability. If an infection is the cause, antibiotics may cure the infection and there are usually no long-term effects. A person who has cancer or another serious condition may need lifelong treatment.
Irritability is not contagious. If an infection is the cause, the infection may be contagious.