Create /etc/acpi/suspend.d/20-kopete.sh mode 0755 to read,
#!/bin/sh
HOME=/home/myuser dcop --user myuser kopete KopeteIface disconnectAll
Create /etc/network/if-up.d/kopete mode 0755 to read,
#!/bin/sh
HOME=/home/myuser dcop --user myuser kopete KopeteIface connectAll