/**
  * Whether or not the users account is activated.
  * 
  * @todo This method is probably a little rough according to the specific way 
  *       phpBB3 actually works, and might need a little more work.
  */
 public static function isActivated($user)
 {
     if (method_exists($user, 'isActivated')) {
         return call_user_func(array($user, 'isActivated'));
     }
     // If activation is not required, the user is per definition activated.
     if (avrPhpbbConfig::getConfigValueFor('require_activation') == 0) {
         return true;
     }
     // If there is no activation key, but activation is required, the user has
     // activated the account.
     if ($user->getUserActKey() == '') {
         return true;
     }
     return false;
 }