From e7418bb8679a05008538273a1488c4742a25c15b Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 10 Feb 2011 12:54:51 +0100 Subject: /unignore completion --- src/tabs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 8f42a0f4..e538c3a9 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -360,7 +360,7 @@ class MucTab(ChatTab): self.key_func['M-y'] = self.scroll_user_list_up # commands self.commands['ignore'] = (self.command_ignore, _("Usage: /ignore \nIgnore: Ignore a specified nickname."), None) - self.commands['unignore'] = (self.command_unignore, _("Usage: /unignore \nUnignore: Remove the specified nickname from the ignore list."), None) + self.commands['unignore'] = (self.command_unignore, _("Usage: /unignore \nUnignore: Remove the specified nickname from the ignore list."), self.completion_unignore) self.commands['kick'] = (self.command_kick, _("Usage: /kick [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason."), None) self.commands['topic'] = (self.command_topic, _("Usage: /topic \nTopic: Change the subject of the room"), self.completion_topic) self.commands['query'] = (self.command_query, _('Usage: /query [message]\nQuery: Open a private conversation with . This nick has to be present in the room you\'re currently in. If you specified a message after the nickname, it will immediately be sent to this user'), None) @@ -553,6 +553,9 @@ class MucTab(ChatTab): self.ignores.remove(user) self.core.information(_('%s is now unignored') % nick) + def completion_unignore(self, the_input): + the_input.auto_completion([user.nick for user in self.ignores], ' ') + def resize(self): """ Resize the whole window. i.e. all its sub-windows -- cgit v1.2.3