aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/skype/skype.c
Commit message (Collapse)AuthorAgeLines
* Remove old skype plugin. Use the skypeweb purple plugin instead.dequis2018-03-11-1778/+0
| | | | | | | | | | RIP This plugin relied on the skype linux client, which doesn't work anymore. During login it just does exit(0) for mysterious reasons. I guess that's the server trying to say that it's not supported. This is officially dead now after a few years of kinda-almost-working.
* Implemented plugin information for external pluginsjgeboski2016-05-25-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of now, bitlbee will load any plugin regardless of the ABI it was built against. This is really problematic when structures or symbols are changed within bitlbee. This often leads to the plugin not loading or the plugin acting in an undefined way. Typically a simple rebuild of the plugin will resolve such issues, but many users have no idea that this is required after they have updated bitlbee. Furthermore, it is often times impossible to determine the version of a plugin, without relying on the package manager of the system. This is quite a problem when users are reporting bugs for external plugins, and they have no idea what version of the plugin they are running. This is also an opportunity to provide additional metadata for each plugin that can then be displayed to the user. Solving these issues is done by adding a new required function to each plugin. The init_plugin_info() function must now be implemented along with the init_plugin() function. This function then returns a static structure, which retains all of the metadata for the plugin. Then this is used by bitlbee to check the ABI version and provide information to the user. The introduction of the new function is required as bitlbee needs to obtain the ABI version before calling init_plugin(). The boiler-plate implementation of init_plugin_info(): #ifdef BITLBEE_ABI_VERSION_CODE struct plugin_info *init_plugin_info(void) { static struct plugin_info info = { BITLBEE_ABI_VERSION_CODE, /* Required */ "plugin-name", /* Required */ "1.3.3.7", /* Required */ "A short description of the plugin", /* Optional */ "First Last <alias@domain.tld>", /* Optional */ "http://www.domain.tld" /* Optional */ }; return &info; } #endif The example wraps the function declaration in an if block for backwards compatibility with older bitlbee versions. Displaying the plugin metadata is done via the newly added "plugins" command, which simply dumps formatted data to the root channel.
* skype: create groupchat as soon as a message is receiveddequis2015-10-13-13/+21
| | | | | | | | | | | | | | | | | | 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.
* skype: use g_vsnprintf() instead of vsnprintf()dequis2015-10-13-2/+1
| | | | | | More prefixes = better. The G stands for "good". (it also fixes the warning about _BSD_SOURCE being deprecated)
* skype: use ssl_sockerr_again() instead of sockerr_again()dequis2015-10-13-1/+1
| | | | | Found the thing using 100% cpu because of a dead connection that it didn't want to bury.
* Reindent everything to K&R style with tabsIndent2015-02-20-199/+294
| | | | | | | Used uncrustify, with the configuration file in ./doc/uncrustify.cfg Commit author set to "Indent <please@skip.me>" so that it's easier to skip while doing git blame.
* Replace isdigit/isalpha/.../tolower/toupper with glib variantsdequis2015-01-16-1/+1
| | | | | | | | | | | This fixes warnings about passing signed chars to them (apparently they are implemented as macros that do array lookups without checks in some platforms, yay) Specifically: functions=isalnum|isalpha|isdigit|isspace|isxdigit|tolower|toupper sed -ir "s/$functions/g_ascii_&/g" **/*.c
* Fix incorrect Free Software Foundation addressMatej Cepl2015-01-16-1/+1
|
* skype: fix buildMiklos Vajna2013-04-23-1/+1
|
* skype: ignore empty username (#1045)Miklos Vajna2013-04-21-4/+4
|
* skype: avoid fake MBERS buddy in groupchatsMiklos Vajna2013-04-21-1/+4
|
* Merging "storage" branch which I wrote long ago. It separates generation ofWilmer van der Gaast2013-04-20-3/+3
|\ | | | | | | | | | | XML-formatted user configs from disk I/O so we can try to start using other mechanisms to store them (a REST API or something, for example).
| * s/ACC_SET_NOSAVE/SET_NOSAVE/.Wilmer van der Gaast2012-06-07-3/+3
| |
* | skype: improve support for reading bookmarked chats (#1037)Jinn Ko2013-03-16-1/+5
| |
* | skype: in groupchats, handle ACTIVEMEMBERS as MEMBERS (#1037)Jinn Ko2013-03-16-1/+1
| |
* | skype: add support for fetching full names of buddiesMiklos Vajna2013-02-28-4/+18
| |
* | Clean up set_my_name API implementationsMiklos Vajna2013-02-18-6/+0
| |
* | skype_buddy_action_list: fix missing hangup in help outputMiklos Vajna2013-02-16-2/+4
| |
* | skype: check for truncated commands on receivingMike Kazantsev2013-02-14-1/+8
| |
* | skype: add newline to all the lines emittedMike Kazantsev2013-02-11-14/+14
| |
* | skype: provide more info about file transfersMiklos Vajna2013-01-19-0/+23
| | | | | | | | | | | | | | | | | | | | Till now only a single line was printed, when a new offer arrived. Now two more lines are printed: - when the actual transfer starts (offer accepted), with destination filename - when the transfer completes
* | skype_parse_chat: read MEMBERS, not ACTIVEMEMBERSMiklos Vajna2013-01-16-2/+2
| | | | | | | | | | | | | | | | | | | | This makes /invite working again. No idea when this got broken, but I promise the next commit will add a tescase for it. Also, with this, other groupchat members will be already present in the gropuchat when we chain, finally solving the annoying fake joins presenting till now.
* | Update my emailMiklos Vajna2013-01-13-1/+1
| |
* | skype: make checkpatch happy again (cosmetics)Miklos Vajna2013-01-01-29/+26
| |
* | skype: support setting mood textMiklos Vajna2013-01-01-1/+13
| | | | | | | | | | Requested by martinc on IRC.
* | skype: make it not hang with >=2.2.0.35Miklos Vajna2012-12-29-0/+5
|/ | | | | | | | Sadly reading users of larger groups using the public API just hangs in newer Skype versions. Skype4Py already defines a timeout for requests, but still: startup takes *minutes*. Work this around by disabling reading of groups by default.
* skype: use ssl_disconnect instead of closesocketMiklos Vajna2012-04-12-1/+6
| | | | | | | Also call ssl_disconnect on logout. Patch-by: meh on IRC.
* skype: properly display multiple about linesMiklos Vajna2012-01-28-5/+20
| | | | | Previously we printed only the last one
* skype: don't crash in skype_parse_user() if the user has multiple about linesMiklos Vajna2012-01-28-0/+15
|
* Add verify argument to ssl_connect() so HTTPS-based stuff is also secure.Wilmer van der Gaast2011-12-19-1/+1
| | | | | (Think of Twitter, but also MSN/Yahoo! authentication.)
* Initial merge of tls_verify patch from AopicieR.Wilmer van der Gaast2011-12-19-1/+1
|
* Fix #820, make Skype mod compile on NetBSD.Wilmer van der Gaast2011-08-27-0/+1
| | | | | | | (I haven't personally tested that the Skype module *works* after this nor have I received any reports that either confirm or deny this. This change just makes it *compile*.)
* Free skype groupchats on logoutJan Hruban2011-06-15-0/+3
|
* Don't create new channel when skype groupchat turns from DIALOG to ↵Jan Hruban2011-06-15-2/+5
| | | | MULTI_SUBSCRIBED (works only when user initiates the chat, otherwise new channel is created anyway)
* Fix crash on inviting people to skype groupchatsJan Hruban2011-06-15-4/+1
|
* Merge bitlbee-skype into bitlbeeMiklos Vajna2011-04-12-0/+1562