Don't be a jerk. If you are not sure whether you are being a jerk, ask a channel operator (they have the little @'s by their name).
Don't suffer jerks. If someone is being a jerk, you can ignore them, notify a channel operator, or ask an ircop to help.
Refer to this hierarchy to resolve disputes.