From: jamesbunton Date: Tue, 14 Mar 2006 00:28:30 +0000 (+0000) Subject: Committed Remko's patches (env & typing notification fix) X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/c4a69377f28b46025f8ee9d4500c44e598df644a Committed Remko's patches (env & typing notification fix) Will look over chatstates soon. git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@125 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/PyMSNt.py b/PyMSNt.py index 4f120ac..8736387 100644 --- a/PyMSNt.py +++ b/PyMSNt.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # Make 'cwd'/src in the PYTHONPATH import sys, os, os.path diff --git a/src/legacy/glue.py b/src/legacy/glue.py index 4c84a12..ff56545 100644 --- a/src/legacy/glue.py +++ b/src/legacy/glue.py @@ -394,6 +394,8 @@ class LegacyConnection(msn.MSNConnection): def gotMessage(self, remoteUser, text): LogEvent(INFO, self.jabberID) source = msn2jid(remoteUser, True) + if self.contactTyping.has_key(remoteUser): + del self.contactTyping[remoteUser] self.session.sendMessage(self.jabberID, fro=source, body=text, mtype="chat") self.session.pytrans.statistics.stats["MessageCount"] += 1