Changeset 64bed24 for protocols/skype/t


Ignore:
Timestamp:
2015-10-13T05:05:22Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
0b1ae59
Parents:
fdc6d84
Message:

skype: create groupchat as soon as a message is received

Before this commit, the bee_chat_by_title() call just failed when
receiving a message in a groupchat we didn't know about, which is
probably something skype broke in their api at some point.

I'm fixing this since apparently the only way to access p2p based chats
is through the official skype desktop client (they won't be supported
through msnp24 or skypeweb. It's broken in mobile clients already), so
this plugin is probably the best way to access those.

This breaks the 'msg' test - now all chats are groupchats and there's no
way to tell them apart.

However, in reality, private messages aren't delivered at all over the
api, or at least I never managed to get them working. Probably if you
talk with someone who has a very old patched skype client.

Location:
protocols/skype/t
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/t/groupchat-invite-bitlbee.mock

    rfdc6d84 r64bed24  
    77>> :bob!bob@skype.com JOIN :&bitlbee
    88<< PRIVMSG &bitlbee :chat with bob
    9 >> 353 alice = ##alice/$bob;a7ab206ec78 :@alice bob @root
     9>> 353 alice = ##alice/$bob;a7ab206ec78 :@alice @root
    1010<< INVITE cecil ##alice/$bob;a7ab206ec78
    1111>> cecil@skype.com JOIN :##alice/$bob;a7ab206ec78
  • protocols/skype/t/groupchat-invite-skyped.mock

    rfdc6d84 r64bed24  
    2626>> GET CHAT #alice/$bob;a7ab206ec78060f1 TOPIC
    2727<< CHAT #alice/$bob;a7ab206ec78060f1 TOPIC
     28>> GET CHAT #alice/$bob;a7ab206ec78060f1 ACTIVEMEMBERS
     29<< CHAT #alice/$bob;a7ab206ec78060f1 ACTIVEMEMBERS
    2830<< CHATMESSAGE 206 STATUS SENDING
    2931<< CHAT #alice/$bob;a7ab206ec78060f1 STATUS DIALOG
  • protocols/skype/t/groupchat-invited-bitlbee.mock

    rfdc6d84 r64bed24  
    66<< PRIVMSG &bitlbee :account skype on
    77>> JOIN :##cecil/$bob;4d8cc996579
    8 >> 353 alice = ##cecil/$bob;4d8cc996579 :@alice bob cecil @root
     8>> 353 alice = ##cecil/$bob;4d8cc996579 :@alice @root
  • protocols/skype/t/groupchat-leave-bitlbee.mock

    rfdc6d84 r64bed24  
    77<< PRIVMSG &bitlbee :account skype on
    88>> JOIN :##cecil/$bob;4d8cc996579
    9 >> 353 alice = ##cecil/$bob;4d8cc996579 :@alice bob cecil @root
     9>> 353 alice = ##cecil/$bob;4d8cc996579 :@alice @root
    1010<< PART ##cecil/$bob;4d8cc996579
    1111>> PRIVMSG &bitlbee :alice: CHAT #cecil/$bob;4d8cc9965791c6b9 STATUS UNSUBSCRIBED
  • protocols/skype/t/groupchat-leave-skyped.mock

    rfdc6d84 r64bed24  
    3636>> GET CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    3737<< CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    38 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER
    39 << CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER bob
    40 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    41 << CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    42 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER
    43 << CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER bob
    44 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    45 << CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
     38>> GET CHAT #cecil/$bob;4d8cc9965791c6b9 ACTIVEMEMBERS
     39<< CHAT #cecil/$bob;4d8cc9965791c6b9 ACTIVEMEMBERS
    4640>> GET CHATMESSAGE 188 FROM_HANDLE
    4741<< CHATMESSAGE 188 FROM_HANDLE bob
  • protocols/skype/t/groupchat-msg-bitlbee.mock

    rfdc6d84 r64bed24  
    77<< PRIVMSG &bitlbee :account skype on
    88>> JOIN :##cecil/$bob;4d8cc996579
    9 >> 353 alice = ##cecil/$bob;4d8cc996579 :@alice bob cecil @root
     9>> 353 alice = ##cecil/$bob;4d8cc996579 :@alice @root
    1010<< PRIVMSG ##cecil/$bob;4d8cc996579 :hello
    1111>> PRIVMSG &bitlbee :alice: CHAT #cecil/$bob;4d8cc9965791c6b9 ACTIVITY_TIMESTAMP
  • protocols/skype/t/groupchat-msg-skyped.mock

    rfdc6d84 r64bed24  
    3636>> GET CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    3737<< CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    38 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER
    39 << CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER bob
    40 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    41 << CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    42 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER
    43 << CHAT #cecil/$bob;4d8cc9965791c6b9 ADDER bob
    44 >> GET CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
    45 << CHAT #cecil/$bob;4d8cc9965791c6b9 TOPIC
     38>> GET CHAT #cecil/$bob;4d8cc9965791c6b9 ACTIVEMEMBERS
     39<< CHAT #cecil/$bob;4d8cc9965791c6b9 ACTIVEMEMBERS bob cecil alice
    4640>> GET CHATMESSAGE 188 FROM_HANDLE
    4741<< CHATMESSAGE 188 FROM_HANDLE bob
  • protocols/skype/t/groupchat-topic-bitlbee.mock

    rfdc6d84 r64bed24  
    66<< PRIVMSG &bitlbee :account skype on
    77>> JOIN :##cecil/$bob;4d8cc996579
    8 >> 353 alice = ##cecil/$bob;4d8cc996579 :@alice bob cecil @root
     8>> 353 alice = ##cecil/$bob;4d8cc996579 :@alice @root
    99<< TOPIC ##cecil/$bob;4d8cc996579 :topic
    1010>> TOPIC ##cecil/$bob;4d8cc996579 :topic
Note: See TracChangeset for help on using the changeset viewer.