or download this
###### Use this snippet to disconnect the account ######
##$slaveAccount->set_status("available", FALSE);
...
##$slaveAccount->set_enabled(Purple::Core::get_ui(), FALSE);
Purple::Debug::info("MultiLocSyncPlugin",$slaveAccount . " was forced
+to disconnect\n");
###### END Use this snippet to disconnect the account ######