protected function _postDelete()
 {
     $identities = $this->_getUserModel()->getIdentities($this->get('user_id'));
     // delete the user from source bans
     if ($identities && array_key_exists('Steam', $identities)) {
         $adminModel = new AWickham_SourceBansSync_Model_SourceBans_Admin();
         $adminModel->delete($this->get('user_id'), $identities['Steam']);
         // rehash the sourcebans servers
         AWickham_SourceBansSync_Model_SourceBans_Rcon::rehash();
     }
     parent::_postDelete();
 }
 protected function _postDelete()
 {
     // $identities = $this->_getUserModel()->getIdentities($this->get('user_id'));
     $identities = $this->_getUserModel()->getUserAuthenticationObjectByUserId($this->get('user_id'));
     // create a user model
     $xfUserModel = XenForo_Model::create('XenForo_Model_User');
     // delete the user from source bans
     if ($identities && array_key_exists('steam', $identities)) {
         $adminModel = new AWickham_SourceBansSync_Model_SourceBans_Admin();
         $adminModel->delete($this->get('user_id'), $xfUserModel->toSteamId($identities['steam']['provider_key']));
         // rehash the sourcebans servers
         AWickham_SourceBansSync_Model_SourceBans_Rcon::rehash();
     }
     parent::_postDelete();
 }