Prevent a plugin from automatically updating itself

Got a plugin that you don’t want your client to update? Insert this bit of code at the end of the plugin and it will not check to see if there is an updated version (thus getting rid of the reminders)

add_filter('site_transient_update_plugins', 'dd_remove_update_nag');
function dd_remove_update_nag($value) {
 unset($value->response[ plugin_basename(__FILE__) ]);
 return $value;