diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-13 16:21:15 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-13 16:21:15 +0100 |
commit | 33f8efd77263368b7f83a27b7645196215700272 (patch) | |
tree | 276cb251ad24a8d95830c0342127691067f1f331 /src | |
parent | 283b258d4e7d2131620eca22e9effc9cb0ede036 (diff) | |
download | poezio-33f8efd77263368b7f83a27b7645196215700272.tar.gz poezio-33f8efd77263368b7f83a27b7645196215700272.tar.bz2 poezio-33f8efd77263368b7f83a27b7645196215700272.tar.xz poezio-33f8efd77263368b7f83a27b7645196215700272.zip |
Completion for /kick
Diffstat (limited to 'src')
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index a1facb6f..15731b73 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -474,7 +474,7 @@ class MucTab(ChatTab): # commands self.commands['ignore'] = (self.command_ignore, _("Usage: /ignore <nickname> \nIgnore: Ignore a specified nickname."), self.completion_ignore) self.commands['unignore'] = (self.command_unignore, _("Usage: /unignore <nickname>\nUnignore: Remove the specified nickname from the ignore list."), self.completion_unignore) - self.commands['kick'] = (self.command_kick, _("Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason."), None) + self.commands['kick'] = (self.command_kick, _("Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason."), self.completion_ignore) self.commands['role'] = (self.command_role, _("Usage: /role <nick> <role> [reason]\nRole: Set the role of an user. Roles can be: none, visitor, participant, moderator. You also can give an optional reason."), None) self.commands['affiliation'] = (self.command_affiliation, _("Usage: /affiliation <nick> <affiliation> [reason]\nAffiliation: Set the affiliation of an user. Affiliations can be: none, member, admin, owner. You also can give an optional reason."), None) self.commands['topic'] = (self.command_topic, _("Usage: /topic <subject>\nTopic: Change the subject of the room."), self.completion_topic) @@ -492,10 +492,12 @@ class MucTab(ChatTab): self.update_commands() def completion_ignore(self, the_input): + """Completion for /ignore""" userlist = [user.nick for user in self.users] userlist.remove(self.own_nick) return the_input.auto_completion(userlist, '') + def scroll_user_list_up(self): self.user_win.scroll_up() self.user_win.refresh(self.users) |