friendica/friendica-addons — pull request #23 by CatoTH (2012-03-19 21:32:44+00:00)
Title: Bugfix: deactivating Real-Time Updates when updating the plugin

The lines in the uninstall-hook deactivated the plugin not only when uninstalling it, but also when updating it. Yes, I know that's documented behavior - I didn't RTFM carfully enough :)
Some more error handling.