Aaron Axelsen wrote: > I have been having trouble getting aim especially to show away status. > > I just did some testing and figure out the following: > > Trillian 3.1 Beta - All Transports Set to Away > Tkabber, PSI - ICQ, MSN, Yahoo set to away. AIM remains as online > Pandion - MSN and Yahoo set to away, AIM and ICQ remain online. > > So the question becomes, is this a problem with client side handeling > of things? Or does it trace back to the transport itself? > Does these two patches fix the problem?
I haven't tested them (I don't use [EMAIL PROTECTED]), but they work for ICQ and the user status part of the oscar protocol is the same for both ICQ and AIM. /Jonas -------------- next part -------------- --- pyaim-t-0.4a/src/legacy/oscar/aimt.py 2005-01-11 06:17:52.000000000 +0100 +++ pyaim-t-0.4a-edited/src/legacy/oscar/aimt.py 2005-02-05 21:04:47.486783112 +0100 @@ -135,6 +135,7 @@ self.aimcon.setAway(None) else: self.aimcon.setAway(self.aimcon.savedFriendly) + self.aimcon.setAIMStatus(self,aimcon.savedShow) def warnedUser(self, oldLevel, newLevel, username): debug.log("B: warnedUser"); @@ -189,6 +190,10 @@ self.bos.setAway(awayMessage) + def setAIMStatus(self, status): + debug.log("AIMConnection: setAIMStatus %s"%(status)) + self.bos.setAIMStatus(status) + def sendMessage(self, target, message): from glue import jid2aim -------------- next part -------------- --- pyaim-t-0.4a/src/tlib/oscar.py 2005-01-11 06:15:33.000000000 +0100 +++ pyaim-t-0.4a-edited/src/tlib/oscar.py 2005-02-05 21:05:21.788568448 +0100 @@ -833,6 +833,22 @@ """ self.sendSNACnr(0x01, 0x11, struct.pack('!L',idleTime)) + def setAIMStatus(self, status): + """ + set status of user: online, away, xa, dnd or chat + """ + if status == "away": + icqStatus = 0x01 + elif status == "dnd": + icqStatus = 0x02 + elif status == "xa": + icqStatus = 0x04 + elif status == "chat": + icqStatus = 0x20 + else: + icqStatus = 0x00 + self.sendSNACnr(0x01, 0x1e, TLV(0x06, struct.pack(">L", icqStatus))) + def sendMessage(self, user, message, wantAck = 0, autoResponse = 0, offline = 0 ): \ #haveIcon = 0, ): """ From [EMAIL PROTECTED] Sat Feb 5 15:12:35 2005 From: [EMAIL PROTECTED] (=?ISO-8859-1?Q?Jonas_=C5dahl?=) Date: Sat Feb 5 15:12:35 2005 Subject: [py-transports] Away Status In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> There was a stupid error in my patch (aimt.py.diff).. Here is the correct one. /Jonas -------------- next part -------------- --- pyaim-t-0.4a/src/legacy/oscar/aimt.py 2005-01-11 06:17:52.000000000 +0100 +++ pyaim-t-0.4a-edited/src/legacy/oscar/aimt.py 2005-02-05 21:04:47.486783112 +0100 @@ -135,6 +135,7 @@ self.aimcon.setAway(None) else: self.aimcon.setAway(self.aimcon.savedFriendly) + self.aimcon.setAIMStatus(self.aimcon.savedShow) def warnedUser(self, oldLevel, newLevel, username): debug.log("B: warnedUser"); @@ -189,6 +190,10 @@ self.bos.setAway(awayMessage) + def setAIMStatus(self, status): + debug.log("AIMConnection: setAIMStatus %s"%(status)) + self.bos.setAIMStatus(status) + def sendMessage(self, target, message): from glue import jid2aim From [EMAIL PROTECTED] Mon Feb 7 05:26:26 2005 From: [EMAIL PROTECTED] (James Bunton) Date: Mon Feb 7 05:26:26 2005 Subject: [py-transports] PyMSNt 0.9-dev2 Message-ID: <[EMAIL PROTECTED]> Hi again all. Another preview of PyMSNt is out for everybody. If anybody has any (small) last minute feature requests or any bug reports please get them to me in the next few days. I plan to release this on Friday if there's no problems with it. That means I'll be free to work on file transfer and other interesting stuff! :) I'm particularly interested in hearing how people go with it on larger servers. There should be improvements in memory usage. There is still a few leaks to squash I think. But it's a lot less severe than even in 0.9-dev2. It's a huge improvement over 0.8. A changelog from 0.8: * HTTPS proxy http://developer.netscape.com/docs/manuals/proxy/ProxyUnx/SSL-TUN * Switch to using xish for all XML parsing * Make an option of registration * Review subscription code (WRT eJabberd) * Don't reconnect if disconnect reason is connected from another location * jabber:x:delay in groupchat messages * Send error messages as errors * Better config format? * Fix groupchat * Can change nicks with jabber:iq:register without re-entering password * Slight subscription tweaks, gah I hate that code! * Test compatibility with MSN7.0beta * Finish MSN Notification messages (NOT message, send as headline events) * Caches list version number for faster login times - not quite working.. The major things people should notice are.. MSN Alerts, subscription code a little more robust (including eJabberd fixes), new config format, groupchat should work perfectly now. Please try it out, and try to break it in as many ways as possible. Bug reports are welcome. They're most useful when they include the exception, and the surrounding lines in debug.log. Enjoy! Oh yeah, you can get it from: http://delx.cjb.net/PyMSNt --- James