diff options
author | mathieui <mathieui@mathieui.net> | 2012-02-15 23:01:50 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2012-02-15 23:01:50 +0100 |
commit | c7da566f0ae6fa412341f48f27122ed7f968ae9d (patch) | |
tree | bfc92511ed0e47215739afeeae8c387d8f5855eb /src | |
parent | c26ff221fd62c28c0d4e7a527c36b449dbd25f50 (diff) | |
download | poezio-c7da566f0ae6fa412341f48f27122ed7f968ae9d.tar.gz poezio-c7da566f0ae6fa412341f48f27122ed7f968ae9d.tar.bz2 poezio-c7da566f0ae6fa412341f48f27122ed7f968ae9d.tar.xz poezio-c7da566f0ae6fa412341f48f27122ed7f968ae9d.zip |
Fixes #2324
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py index 9deac05c..0b5bb37b 100644 --- a/src/core.py +++ b/src/core.py @@ -149,6 +149,10 @@ class Core(object): 'xml_tab': (self.command_xml_tab, _("Usage: /xml_tab\nXML Tab: Open an XML tab."), None), } + if config.get('send_initial_presence', 'true').lower() == 'false': + del self.commands['status'] + del self.commands['show'] + self.key_func = { "KEY_PPAGE": self.scroll_page_up, "KEY_NPAGE": self.scroll_page_down, @@ -629,9 +633,10 @@ class Core(object): # request the roster self.xmpp.getRoster() # send initial presence - pres = self.xmpp.make_presence() - self.events.trigger('send_normal_presence', pres) - pres.send() + if config.get('send_initial_presence', 'true').lower() == 'true': + pres = self.xmpp.make_presence() + self.events.trigger('send_normal_presence', pres) + pres.send() bookmark.get_local() if not self.xmpp.anon and not config.get('use_remote_bookmarks', 'true').lower() == 'false': bookmark.get_remote(self.xmpp) |