From 923934bfd84a5f80609f76f643947107cbd0052d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 16 Feb 2005 15:00:28 +0000 Subject: [PATCH] little bugfix --- plugins/gtkgui/gtkgui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index c2866c2bd..fdcfb3883 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -2710,7 +2710,8 @@ class plugin: old_show = statuss.index(user1.show) else: user1 = self.roster.contacts[account][ji][0] - old_show = statuss.index(user1.show) + if user1.show in statuss: + old_show = statuss.index(user1.show) if (resources != [''] and (len(luser) != 1 or luser[0].show != 'offline')) and not string.find(jid, "@") <= 0: old_show = 0