From 4a5848a66cbf8511d982e8805049bd948eebe2b6 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Wed, 1 Feb 2006 10:12:07 +0100 Subject: [PATCH] Switch to stanza type "normal" - Stanza type "message" does not exist, "normal" is the correct type. darcs-hash:20060201091207-86b55-7ff9bd7e919cb97950b7b71df05f7c12c9e8696d.gz --- jabber/component.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jabber/component.py b/jabber/component.py index e199d3a..fb77c4c 100644 --- a/jabber/component.py +++ b/jabber/component.py @@ -652,7 +652,7 @@ class MailComponent(Component): socket = host if self.__storage.has_key((base_from_jid, name)): m = Message(from_jid = self.jid, to_jid = from_jid, \ - stanza_type = "message", \ + stanza_type = "normal", \ subject = lang_class.update_account_message_subject \ % (type, name), \ body = lang_class.update_account_message_body \ @@ -660,7 +660,7 @@ class MailComponent(Component): self.stream.send(m) else: m = Message(from_jid = self.jid, to_jid = from_jid, \ - stanza_type = "message", \ + stanza_type = "normal", \ subject = lang_class.new_account_message_subject \ % (type, name), \ body = lang_class.new_account_message_body \ @@ -741,7 +741,7 @@ class MailComponent(Component): account.waiting_password_reply = True msg = Message(from_jid = name + "@" + unicode(self.jid), \ to_jid = from_jid, \ - stanza_type = "message", \ + stanza_type = "normal", \ subject = u"[PASSWORD] " + lang_class.ask_password_subject, \ body = lang_class.ask_password_body % \ (account.host, account.login)) @@ -829,7 +829,7 @@ class MailComponent(Component): account.waiting_password_reply = False msg = Message(from_jid = name + "@" + unicode(self.jid), \ to_jid = message.get_from(), \ - stanza_type = "message", \ + stanza_type = "normal", \ subject = lang_class.password_saved_for_session, \ body = lang_class.password_saved_for_session) self.stream.send(msg) @@ -865,7 +865,7 @@ class MailComponent(Component): mesg = Message(from_jid = name + "@" + \ unicode(self.jid), \ to_jid = jid, \ - stanza_type = "message", \ + stanza_type = "normal", \ body = body) self.stream.send(mesg) account.lastmail += 1