aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/iq.c
Commit message (Collapse)AuthorAgeLines
* jabber: Implement chat list commanddequis2016-10-16-0/+59
| | | | Also applies to hipchat.
* Remove the ARCH / CPU defines.Jelmer Vernooij2016-05-15-1/+0
| | | | | | | These only reflect on what arch/cpu bitlbee was built, not on which it is running. This makes the Debian package unreproducible. See e.g. https://tests.reproducible-builds.org/rb-pkg/testing/i386/bitlbee.html
* jabber: return XT_ABORT after failed IQ auth attemptsdequis2016-03-12-2/+2
|
* jabber: Reply unknown IQs with service-unavailable insteaddequis2015-11-25-4/+6
| | | | | | | | | | | It was sending 'feature-not-implemented' for <query> with unknown xmlns (which makes sense, but the RFC says that's wrong. idk.) and nothing at all for IQs that don't have query/ping/time elements or an xmlns attribute. Both get service-unavailable now. Addresses the rest of trac ticket 533: https://bugs.bitlbee.org/bitlbee/ticket/533
* jabber: Implement carbons (XEP-0280)dequis2015-11-21-2/+37
| | | | | | | | | | | | | | "Message carbons" (XEP-0280) is a server feature to get copies of outgoing messages sent from other clients connected to the same account. It's not widely supported by most public XMPP servers (easier if you host your own), but this will probably change in the next few years. This is enabled by default if the server supports it. It can also be disabled with the "carbons" account setting. Loosely based on a patch by kormat from trac ticket 1021. (Thanks!) I moved stuff around, simplified things, fixed a few bugs, and used the new self-messages feature.
* jabber: Fix leak in jabber_gmail_handle_newdequis2015-10-08-2/+2
| | | | | | | From coverity. That g_strdup_printf() was really pointless, slightly ashamed we didn't notice that in the review of the patch.
* Rename mail notification related settings for consistencydequis2015-05-28-1/+1
| | | | | - GMail notifications stuff is now just 'mail_notifications' - sed -i s/notify_handle/mail_notifications_handle/
* imcb_notify_email: change parameters to take a format stringdequis2015-05-28-5/+1
| | | | | | | Saves some messing with g_strdup_printf for the callers, and flags/sent_at weren't used anyway. Also check if the mail_notifications setting is enabled
* Simplify display of gmail notificationsdequis2015-05-28-18/+12
| | | | | | | | - Add gmail_notifications_limit hidden setting, set to 5 by default. - Don't show "snippets" in email notifications. Not very useful and they make the whole thing seem too spammy - Show sender name instead of your own email - Default values for empty subject / sender
* Gmail notifications support through new imcb_notify_email() APIArtem Savkov2015-05-28-0/+135
|
* hipchat: Basic implementation: Auth, profile and mention namesdequis2015-04-28-2/+9
| | | | | | | | This is enough to log in with their usernames, make 'chat add' based groupchat joins slightly more smooth, and see mention names as nicks. All the MUC list stuff is left out intentionally since that's not as stable as I wish.
* Reindent everything to K&R style with tabsIndent2015-02-20-606/+569
| | | | | | | 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.
* Add handle_is_self() prpl function to fix JID mismatch confusion bugsdequis2015-01-25-4/+0
| | | | | | | | | When bee_chat needs to check for self messages, it can call this function to let the protocol implementation do the comparison. In the case of jabber, sometimes the server reports a different username after login, this one is stored in jd->internal_jid, and the one that is used for login isn't changed
* Added jabber_compare_jid to fix JID comparison case sensitivityGRMrGecko2014-07-24-1/+1
|
* I'm still bored on a long flight. Wrote a script to automatically updateWilmer van der Gaast2013-02-21-1/+1
| | | | | | | my copyright mentions since some were getting pretty stale. Left files not touched since before 2012 alone so that this change doesn't touch almost EVERY source file.
* Implement jabber message receipts (XEP-0184)Michael Stapelberg2012-10-17-0/+1
| | | | | | | This change will make BitlBee acknowledge messages when requested. It will not request message receipts from other clients, mainly because I am not sure if this feature can be mapped to IRC cleanly.
* Probing for Google Talk servers, based on iq-discovery responses. I'll needWilmer van der Gaast2012-02-10-0/+44
| | | | | this for automatically generating a sane name for groupchats.
* Detect JID changes at login time and warn the user about them.Wilmer van der Gaast2011-12-20-4/+22
|
* Add support for XEP 202 (replacement for jabber:iq:time).Wilmer van der Gaast2010-12-06-2/+29
|
* First bits of CTCP support to contacts. (Try /CTCP VERSION on a JabberWilmer van der Gaast2010-12-06-0/+48
| | | | | contact.)
* Merging a few revisions from mainline.Wilmer van der Gaast2010-06-24-2/+2
|\
| * Added user_agent setting to Jabber accounts so people can get aroundWilmer van der Gaast2010-06-23-2/+2
| | | | | | | | | | | | | | ridiculous user agent restrictions on certain Jabber servers. Obviously this is pretty simple to detect and break, but it works at least with Openfire.
* | Allow moving contacts around between groups. Works with at least Jabber,Wilmer van der Gaast2010-06-09-1/+3
| | | | | | | | | | will check the others now.
* | Pick up group changes in the middle of a Jabber session, now that we careWilmer van der Gaast2010-06-05-3/+2
| | | | | | | | | | about that info.
* | Merging head.Wilmer van der Gaast2010-06-01-1/+0
|\|
| * Don't whine on "incomplete" incoming IQ-set packets either, those also happen.Wilmer van der Gaast2010-05-23-1/+0
| |
* | Read group information from Jabber contact lists. The code was already there,Wilmer van der Gaast2010-05-09-1/+1
| | | | | | | | | | but with a simple typo.
* | Including DCC stuff again, with a wonderful extra layer of abstraction.Wilmer van der Gaast2010-04-11-2/+2
| | | | | | | | | | | | | | Some hooks are missing so sending files doesn't work yet. Receiving also still seems to have some issues. On the plus side, at least the MSN/Jabber modules work again.
* | Killed the last str*cmp(xml_find_attr) combos.Wilmer van der Gaast2010-03-21-1/+2
| |
* | xt_status functions should always return an XT_ status, it's not a boolean.Wilmer van der Gaast2010-03-21-5/+5
| |
* | Read the from attribute from the main stanza, not the inside query. AlsoWilmer van der Gaast2010-03-21-2/+2
| | | | | | | | | | fixing another potential NULL pointer dereference.
* | Ouch, committing stuff without even checking if it compiles is bad style.Wilmer van der Gaast2010-03-17-2/+2
| | | | | | | | | | :-)
* | Avoid some NULL pointer dereferences on malformed XMPP packets.Wilmer van der Gaast2010-03-17-17/+24
| |
* | Merging mainline.Wilmer van der Gaast2010-03-17-7/+22
|\|
| * Oops.. Today's Jabber fix could get stuck in a somewhat infinite loop if aWilmer van der Gaast2010-03-15-6/+2
| | | | | | | | | | | | | | Jabber server returns an empty <iq type="result"/> response to the session establishment request (which is valid and actually done by the example, but my test Jabberd shows different behaviour). Fixed.
| * Don't send bind and session requests at the same time when logging inWilmer van der Gaast2010-03-14-6/+25
| | | | | | | | | | because some very picky jabberd's don't like it. (Fixes Bug #569)
* | No functional changes, just some style "fixes". Although I admit I'mWilmer van der Gaast2009-12-13-15/+23
| | | | | | | | | | | | | | | | | | | | somewhat growing out of my own coding style, I do try to keep things consistent at least within files. Comments are now in reviewboard: http://code.bitlbee.org/rb/r/13/
* | Merging head.Wilmer van der Gaast2009-12-07-2/+3
|\|
| * If you can't find what you expect in an IQ packet, it doesn't mean it'sWilmer van der Gaast2009-10-17-2/+3
| | | | | | | | | | | | incorrect, so stop spamming. Ideally it should return a feature-not- implemented but I'll do that later.
* | ulibc support, fixes "Invalid SOCKS5 Connect message" problemulim2008-05-04-2/+3
| |
* | merged in upstream r379 (somewhere after 1.2-3).ulim2008-04-14-1/+26
|\| | | | | | | | | Just one trivial conflict in the jabber Makefile, went smoothly.
| * Added callback on Jabber add-to-roster requests so buddies get added to theWilmer van der Gaast2008-02-16-1/+26
| | | | | | | | | | | | | | internal buddy list a little bit earlier. This should deal better with Jabber servers that send presence information of a new buddy before the roster push.
* | Merged with upstream r328ulim2008-02-15-7/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wilmer van der Gaast 2008-02-11 Got rid of some noise at startup: complaining when the default configuration Wilmer van der Gaast 2008-02-10 Added support for password-protected Jabber chatrooms. Wilmer van der Gaast 2008-02-10 Making AI_ADDRCONFIG optional, it doesn't exist on at least NetBSD and Wilmer van der Gaast 2008-02-09 Restored "add -tmp". A bit hackish, but it will do for now. Wilmer van der Gaast 2008-02-07 Fixed getnameinfo() calls, this fixes Solaris stability issues. Thanks to Wilmer van der Gaast 2008-02-04 Added bogus G_GNUC_MALLOC to restore GLib 2.4 compatibility (hopefully). Wilmer van der Gaast 2008-02-03 Messages from the user are also included in backlogs when joining a Jabber Wilmer van der Gaast 2008-02-03 Disabling "Unknown command" warnings since they're very noisy and pretty Wilmer van der Gaast 2008-02-03 Implemented XEP-0115. This adds some info to the <presence/> tags so Wilmer van der Gaast 2008-02-03 Saner garbage collection of cached packets in the Jabber module. Now Wilmer van der Gaast 2008-02-02 Added help_free() and cleaned up some very stale help-related stuff I Wilmer van der Gaast 2008-01-30 Fixed handling of OSCAR multi-part messages... They're not arrays, they're Wilmer van der Gaast 2008-01-24 Keeping track of valid Jabber connections so _connected() events will be Wilmer van der Gaast 2008-01-24 Fixed two valgrind warnings (partially uninitialized "struct tm" vars.) Wilmer van der Gaast 2008-01-20 The Jabber module now uses imcb_chat_log() instead of imcb_log() where Wilmer van der Gaast 2008-01-20 Added imcb_chat_log() for chatroom system messages, so they can be Wilmer van der Gaast 2008-01-20 GET_BUDDY_FIRST wasn't actually implemented, even though it was in use Wilmer van der Gaast 2008-01-19 Using test -f instead of test -e. This breaks if the include files are Wilmer van der Gaast 2008-01-19 Added byte swapping code to the new MD5 checksumming code to make it work Wilmer van der Gaast 2008-01-18 Moving imcb_chat_new() to a saner location (no code changes) and fixing Wilmer van der Gaast 2008-01-17 Apparently ext_yahoo_got_im can be called with msg=NULL, so it should be Wilmer van der Gaast 2008-01-17 Fixing some Solaris compiler warnings (u_int->uint, adding some typecasts Wilmer van der Gaast 2008-01-13 Fixed handing of failed groupchat joins. Wilmer van der Gaast 2008-01-13 Fixed "Conditional jump or move depends on uninitialised value(s)" at Wilmer van der Gaast 2008-01-13 Fixed quickstart2. (Bug #349.) Wilmer van der Gaast 2008-01-13 Different handling of charset mismatches before login time. Ignoring a Wilmer van der Gaast 2008-01-12 When a switchboard connection dies (at the TCP level) and there are still Wilmer van der Gaast 2008-01-12 Killed info_string_append() and now showing the IP address of ICQ users Wilmer van der Gaast 2008-01-11 Fixing bug #344, now away states should always be correct, even when people Wilmer van der Gaast 2008-01-11 Adding own handle to protocol name in blist output for people with multiple Wilmer van der Gaast 2008-01-10 Now setting odata->icq properly again, this got lost some time ago, which Wilmer van der Gaast 2008-01-06 More consistency in error/warning errors. Until now "WARNING:" was usually Wilmer van der Gaast 2008-01-06 Changed warning message about unsent MSN messages. It should show the actual Wilmer van der Gaast 2008-01-05 Added "mail_notifications" setting. Who needs those notifications anyway? Wilmer van der Gaast 2008-01-05 Build fix from vmiklos. Wilmer van der Gaast 2008-01-05 Added handling of MSN switchboard NAK messages. Untested, but hey, it Wilmer van der Gaast 2008-01-05 Removed closure->result. I was planning to add some more stuff, but will Miklos Vajna 2007-12-31 encode: md5.c is no longer in protocols/, it's in lib/ Wilmer van der Gaast 2007-12-28 Fixed return value check in proxy_connect(), since on some systems Wilmer van der Gaast 2007-12-28 Added missing return in jabber_login(). Wilmer van der Gaast 2007-12-16 Implemented XEP-0199 (patch from misc@mandriva.org). Wilmer van der Gaast 2007-12-12 Checking conn->xcred before trying to clean it up since GnuTLS doesn't Wilmer van der Gaast 2007-12-12 Killed the <server> parameter to "account add" and changed the default Wilmer van der Gaast 2007-12-12 Fixed sockerr_again() usage in Jabber module to (hopefully) fix a 100% CPU Wilmer van der Gaast 2007-12-10 Don't allow nicks that start with a number. Wilmer van der Gaast 2007-12-10 Fixed "set xxx" syntax (it showed all settings instead of just xxx). Wilmer van der Gaast 2007-12-09 If I keep forgetting to credit people in commit msgs I should probably add Wilmer van der Gaast 2007-12-09 Added /invite support for Jabber chatrooms (and fixed the argument order
| * Implemented XEP-0115. This adds some info to the <presence/> tags soWilmer van der Gaast2008-02-03-1/+2
| | | | | | | | | | | | clients interested in capabilities can cache discovery info, so they don't have to ask about it every time you/they log in.
| * More consistency in error/warning errors. Until now "WARNING:" was usuallyWilmer van der Gaast2008-01-06-6/+6
| | | | | | | | | | in upper case while "Error:" wasn't .... that doesn't really make sense.
| * Implemented XEP-0199 (patch from misc@mandriva.org).Wilmer van der Gaast2007-12-16-1/+11
| |
* | Merged in 280..288 from upstream (e.g. PING)kenobi2007-12-19-1/+11
| |
* | sending via proxykenobi2007-12-18-1/+161
| |
* | Merged in current develulim2007-12-04-18/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | Wilmer van der Gaast 2007-12-02 Imported setuid() patch from Simo Leone <simo@archlinux...> with some Wilmer van der Gaast 2007-12-02 Forgot to return something in jabber_chat_join_failed(). Wilmer van der Gaast 2007-12-02 Merging a change I should've pulled before committing three other changes. Wilmer van der Gaast 2007-12-02 Added charset checks on incoming msgs (from the IRC side) to prevent possible Wilmer van der Gaast 2007-12-02 Handling of presence-error packets (only useful for groupchats now), moved Wilmer van der Gaast 2007-12-02 Defining DEBUG via CFLAGS so that it'll always be there, even when a file Wilmer van der Gaast 2007-12-02 Removed retarded printf() (ARGH) and moved the event handling handling of Wilmer van der Gaast 2007-11-29 printf() in daemons considered harmful. Wilmer van der Gaast 2007-11-28 Fixed the epoll+ForkDaemon combination. The libevent event handling
| * Removed retarded printf() (ARGH) and moved the event handling handling ofWilmer van der Gaast2007-12-02-18/+1
| | | | | | | | | | IQ packets to jabber_util so I can reuse it for certain presence packets.