diff --git a/src/roster_window.py b/src/roster_window.py
index 06bd89eb47b59f4fa22c05fafe86ebc1a09a3716..387c274d0b9df2b82b8c885d8c2b51912d91be6e 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -189,19 +189,19 @@ class Roster_window:
 
 		host = jid.split('@')[-1]
 
-		if host.startswith('aim.'):
+		if host.startswith('aim'):
 			state_images = self.transports_state_images['aim']
-		elif host.startswith('gadugadu.'):
+		elif host.startswith('gadugadu'):
 			state_images = self.transports_state_images['gadugadu']
-		elif host.startswith('irc.'):
+		elif host.startswith('irc'):
 			state_images = self.transports_state_images['irc']
-		elif host.startswith('icq.'):
+		elif host.startswith('icq'): # abc@icqsucks.org will match as ICQ, but what to do..
 			state_images = self.transports_state_images['icq']
-		elif host.startswith('msn.'):
+		elif host.startswith('msn'):
 			state_images = self.transports_state_images['msn']
-		elif host.startswith('sms.'):
+		elif host.startswith('sms'):
 			state_images = self.transports_state_images['sms']
-		elif host.startswith('yahoo.'):
+		elif host.startswith('yahoo'):
 			state_images = self.transports_state_images['yahoo']
 		else:
 			state_images = self.jabber_state_images