fix addNotice function
Merge pull request #335 from Shadowss/patch-53

fix addNotice function