[folks] Don't trust personas from IRC



commit f4dc8761a69a66c5c378e8502478b057333ebc6e
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Mon Dec 13 15:23:15 2010 +0000

    Don't trust personas from IRC

 backends/telepathy/lib/tpf-persona-store.vala |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala
index 6e53b22..1273bb3 100644
--- a/backends/telepathy/lib/tpf-persona-store.vala
+++ b/backends/telepathy/lib/tpf-persona-store.vala
@@ -187,9 +187,10 @@ public class Tpf.PersonaStore : Folks.PersonaStore
 
   private void reset ()
     {
-      /* We do not trust local-xmpp at all, since Persona UIDs can be faked by
-       * just changing hostname/username. */
-      if (account.get_protocol () == "local-xmpp")
+      /* We do not trust local-xmpp or IRC at all, since Persona UIDs can be
+       * faked by just changing hostname/username or nickname. */
+      if (account.get_protocol () == "local-xmpp" ||
+          account.get_protocol () == "irc")
         this.trust_level = PersonaStoreTrust.NONE;
       else
         this.trust_level = PersonaStoreTrust.PARTIAL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]