]> git.notmuchmail.org Git - sup/commitdiff
fixed missing 'me'
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 11 Jun 2007 15:53:55 +0000 (15:53 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 11 Jun 2007 15:53:55 +0000 (15:53 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@443 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/account.rb

index 7575b93de0a8cf5336aceae42c7205d2e5ba40d5..de54e5bd451d77f5d435da4ad2c12ab5ddc02477 100644 (file)
@@ -43,7 +43,7 @@ class AccountManager
     end
   end
 
-  def is_account? p; @accounts.member? p; end
+  def is_account? p; @email_map.member?(p.email); end
   def account_for email
     @email_map[email] || @alternate_map[email] || @alternate_map.argfind { |k, v| k === email && v }
   end