diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2011-08-14 14:49:41 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2011-08-14 14:49:41 +0200 |
commit | 84fc61eec47dd79c68a86d2fb906f7978f3a9029 (patch) | |
tree | e96086e2fd617790b359265dbb486234ea1f1cdb /src | |
parent | 12bcb9235f6616e421b3c28d3f8b820ad9fe75a3 (diff) | |
download | poezio-84fc61eec47dd79c68a86d2fb906f7978f3a9029.tar.gz poezio-84fc61eec47dd79c68a86d2fb906f7978f3a9029.tar.bz2 poezio-84fc61eec47dd79c68a86d2fb906f7978f3a9029.tar.xz poezio-84fc61eec47dd79c68a86d2fb906f7978f3a9029.zip |
Show /info in the info window, like /version. Fixes #2225.
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 10 |
1 files 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()) |