Broken code gains a spirit of good manners (7)
I believe the answer is:
decorum
'good manners' is the definition.
(I've seen this before)
'broken code gains a spirit' is the wordplay.
'broken' is an anagram indicator.
'gains' is a charade indicator (letters next to each other).
'a spirit' becomes 'rum' (alcoholic spirit).
'code' is an anagram of 'deco'.
'deco'+'rum'='DECORUM'
'of' is the link.
(Other definitions for decorum that I've seen before include "Good form" , "Correctness or dignity of behaviour" , "Correct behaviour" , "Protocol" , "Dignity of behaviour or proceedings" .)