Promising, direct or indirect proposal, offer, or giving, to a person, who exercises public functions, of any irregular benefit for himself or a third person in order to act or not act in relation to his duty, is punished by imprisonment from six months up to three years.