I think you should use $bbuserinfo['permissions']['adminpermissions'] & CANCONTROLPANEL instead of checking for the usergroup, as admins could be in any usergroup
I've also modified this so the time after which a post is considered a double post and if the post's timestamp should be modified are now settings in Message Posting & Editiong Options, so they can be changed easily