From 3625573c7d071db17beeeb84631fa082bdaf808a Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 17 Oct 2010 06:26:39 +0800 Subject: Default history is 0 --- sleekxmpp/plugins/xep_0045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py index 7c06ca8b..bf472a46 100644 --- a/sleekxmpp/plugins/xep_0045.py +++ b/sleekxmpp/plugins/xep_0045.py @@ -195,7 +195,7 @@ class xep_0045(base.base_plugin): return False return True - def joinMUC(self, room, nick, maxhistory=None, password='', wait=False, pstatus=None, pshow=None): + def joinMUC(self, room, nick, maxhistory="0", password='', wait=False, pstatus=None, pshow=None): """ Join the specified room, requesting 'maxhistory' lines of history. """ stanza = self.xmpp.makePresence(pto="%s/%s" % (room, nick), pstatus=pstatus, pshow=pshow) -- cgit v1.2.3