From 02b74ceed43de06658a818ae71452f7b61428536 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 27 May 2005 11:19:47 +0000 Subject: [PATCH] avoid marking foo@jaim.net as AIM --- src/roster_window.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index b3ac30853..eafbc88d8 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -189,15 +189,15 @@ class Roster_window: host = jid.split('@')[-1] - if host.find('aim.') != -1: + if host.find('aim.') == 0: state_images = self.transports_state_images['aim'] - elif host.find('gadugadu.') != -1: + elif host.find('gadugadu.') == 0: state_images = self.transports_state_images['gadugadu'] - elif host.find('icq.') != -1: + elif host.find('icq.') == 0: state_images = self.transports_state_images['icq'] - elif host.find('msn.') != -1: + elif host.find('msn.') == 0: state_images = self.transports_state_images['msn'] - elif host.find('yahoo.') != -1: + elif host.find('yahoo.') == 0: state_images = self.transports_state_images['yahoo'] else: state_images = self.jabber_state_images