My favorites
▼
|
Sign in
pyicqt
ICQ transport for XMPP
Project Home
Downloads
Wiki
Issues
Source
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
2
attachment: duallogin.patch
(1.6 KB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
diff -ur src/legacy/icqt.py src/legacy/icqt.py
--- src/legacy/icqt.py Mon Aug 1 13:52:59 2005
+++ src/legacy/icqt.py Tue Aug 2 15:32:09 2005
@@ -230,6 +241,17 @@
oscar.OscarConnection.connectionLost(self, reason)
+ def disconnectDualLogin(self, snac):
+ message = "ICQ connection lost! Reason: Dual Login"
+ try:
+ self.icqcon.alertUser(message)
+ except:
+ pass
+ # Send error message
+ self.session.sendMessage(to=self.session.jabberID, fro=config.jid, body=message)
+ # Send error presence
+ self.session.removeMe("cancel", "remote-connection-failed", message)
+
#############################################################################
# Oscar Authenticator
#############################################################################
diff -ur src/tlib/oscar.py src/tlib/oscar.py
--- src/tlib/oscar.py Mon Aug 1 13:52:59 2005
+++ src/tlib/oscar.py Tue Aug 2 14:23:23 2005
@@ -943,6 +982,13 @@
def _cbGetChatInfoForInvite(self, info, user, message):
apply(self.receiveChatInvite, (user,message)+info)
+ def oscar_09_02(self, snac):
+ """
+ Disconnect, dual login
+ """
+ self.disconnectDualLogin(snac)
+ self.disconnect()
+
def oscar_09_03(self, snac):
"""
BOS rights response
@@ -1582,6 +1633,16 @@
called when someone tries to send a file to us
"""
pass
+
+ def disconnectDualLogin(self, snac):
+ """
+ called when Dual Login detected
+ """
+ log.msg(snac[3])
+ log.msg('%s disconnectDualLogin %s' % (self, snac))
+ pass
+
+
class OSCARService(SNACBased):
def __init__(self, bos, cookie, d = None):
Powered by
Google Project Hosting