From 84fc61eec47dd79c68a86d2fb906f7978f3a9029 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sun, 14 Aug 2011 14:49:41 +0200 Subject: Show /info in the info window, like /version. Fixes #2225. --- src/tabs.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/tabs.py b/src/tabs.py index e04f330e..4d5b700e 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -430,9 +430,13 @@ class MucTab(ChatTab): user = self.get_room().get_user_by_name(args[0]) if not user: return self.core.information("Unknown user: %s" % args[0]) - self.get_room().add_message("%s%s: show: %s, affiliation: %s, role: %s%s"% (args[0], ' (%s)'%user.jid if user.jid else '', user.show or 'Available', user.role or 'None', user.affiliation or 'None', '\n%s' % user.status if user.status else '')) - self.text_win.refresh(self._room) - self.input.refresh() + info = '%s%s: show: %s, affiliation: %s, role: %s%s' % (args[0], + ' (%s)' % user.jid if user.jid else '', + user.show or 'Available', + user.role or 'None', + user.affiliation or 'None', + '\n%s' % user.status if user.status else '') + self.core.information(info, 'Info') def command_configure(self, arg): form = self.core.xmpp.plugin['xep_0045'].getRoomForm(self.get_name()) -- cgit v1.2.3