From f76959c78c99044a3f43714ad285178a25498a90 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 9 Feb 2012 17:45:28 +0100 Subject: Restrict nick change for gmail users because gmail.com is buggy --- doc/en/usage.txt | 2 ++ src/tabs.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/doc/en/usage.txt b/doc/en/usage.txt index 95c25427..4db1d699 100644 --- a/doc/en/usage.txt +++ b/doc/en/usage.txt @@ -304,6 +304,8 @@ MultiUserChat tab commands close the tab. You can specify an optional message if you are still connected. */nick *:: Change your nickname in the current room. + *Except for gmail users* because gmail.com sucks and will do weird things + if you change your nickname in a MUC. */recolor [random]*:: Re-assign a color to all the participants in the current room, based on the last time they talked. Use this if the participants diff --git a/src/tabs.py b/src/tabs.py index 4cf5c479..19ac06b5 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -545,6 +545,10 @@ class MucTab(ChatTab): self.commands['configure'] = (self.command_configure, _('Usage: /configure\nConfigure: Configure the current room, through a form.'), None) self.commands['version'] = (self.command_version, _('Usage: /version \nVersion: Get the software version of the given JID or nick in room (usually its XMPP client and Operating System).'), self.completion_version) self.commands['names'] = (self.command_names, _('Usage: /names\nNames: Get the list of the users in the room, and the list of the people assuming the different roles.'), None) + + if self.core.xmpp.boundjid.server == "gmail.com": #gmail sucks + del self.commands["nick"] + self.resize() self.update_commands() self.update_keys() -- cgit v1.2.3