Stop whining about nordic characters in comments, douche!
Refactor 'add_or_update_hostmask' and its underlying methods.
Minor simplification. No functional change.