diff idavoll/memory_storage.py @ 226:b7018ec56ee5

Always use the bare JID for affilitations. Author: sir_sigurd, ralphm. Fixes: #20.
author Ralph Meijer <ralphm@ik.nu>
date Sun, 13 Feb 2011 21:46:33 +0100
parents 0eafdced5f24
children
line wrap: on
line diff
--- a/idavoll/memory_storage.py	Sun Feb 13 21:34:18 2011 +0100
+++ b/idavoll/memory_storage.py	Sun Feb 13 21:46:33 2011 +0100
@@ -126,7 +126,7 @@
 
 
     def getAffiliation(self, entity):
-        return defer.succeed(self._affiliations.get(entity.full()))
+        return defer.succeed(self._affiliations.get(entity.userhost()))
 
 
     def getSubscription(self, subscriber):