aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber_util.c
Commit message (Collapse)AuthorAgeLines
* Merged in current develulim2007-12-04-18/+35
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Handling of presence-error packets (only useful for groupchats now), movedWilmer van der Gaast2007-12-02-18/+5
| | | | | | | | | | | | jabber_chat_by_jid() (with the right name) to conference.c, I don't know what it was doing in jabber_util.c.
| * Removed retarded printf() (ARGH) and moved the event handling handling ofWilmer van der Gaast2007-12-02-0/+30
| | | | | | | | | | IQ packets to jabber_util so I can reuse it for certain presence packets.
* | Intermediate commit. Sending seems to work. TODOs:ulim2007-12-03-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * move from out_of_data to is_writable, eliminate buffers * implement "transfers reject [id]" * documentation in commands.xml * implement throughput and cummulative throughput boundaries * feature discovery before sending * implement sending over a proxy (proxy discovery, socks5 client handshake for sending, activate message) * integrate toxik-mek-ft
* | Initial import of jabber file receive and DCC send support. This introducesulim2007-11-28-1/+5
|/ | | | | | | | | | | | | | | only a few changes to bitlbees code, mainly the addition of the "transfers" command. This is known to work with Kopete, Psi, and Pidgin (formerly known as gaim). At least with Pidgin also over a proxy. DCC has only been tested with irssi. IPV6 is untested but should work. Currently, only receiving via SOCKS5BYTESREAMS is implemented. I'm not sure if the alternative(in-band bytestreams IBB) is worth implementing since I didn't see a client yet that can do it. Additionally, it is probably very slow and needs support by the server as well.
* Added some random hash to the id= for cached XMPP packets so that packetsWilmer van der Gaast2007-11-24-1/+2
| | | | | | from other BitlBees won't be picked up accidentally. Might also want to randomize the per-packet IDs because they're still predictable.
* Added jabber_error_parse() and using it for both stream- and stanzaWilmer van der Gaast2007-07-30-0/+35
| | | | | (only presence so far) errors.
* Added (and using) jabber_chat_free() for better memory management, fixedWilmer van der Gaast2007-07-02-8/+11
| | | | | | channel name generation code in root_commands.c and fixed one memory leak in jabber_buddy_remove_bare().
* Better handling of private messages via groupchats.Wilmer van der Gaast2007-07-01-1/+36
|
* Prepared the Jabber module for anonymous rooms, but the BitlBee coreWilmer van der Gaast2007-04-25-0/+3
| | | | | | doesn't deal with it very well, and I don't really know yet how I'll solve this... :-(
* You can send messages too now. But it's still very kludgy and doesn't workWilmer van der Gaast2007-04-22-0/+49
| | | | | with anonymous rooms (ie about 95% of all available Jabber chatrooms?).
* Read-only support for Jabber conferences (non-anonymous rooms only).Wilmer van der Gaast2007-04-22-4/+31
| | | | | Just don't use this, you're really not going to like it. :-)
* More API changes: buddy list management. imcb_add_buddy() is now a *real*Wilmer van der Gaast2007-04-18-3/+3
| | | | | | | | | callback, it's only called from inside IM-modules. This makes sure a buddy only gets added to the BitlBee structures if the add was successful. This gets rid of the weirdness described in #55. Unfortunately for now this change breaks A) automatic renaming of ICQ contacts (if there are names stored in the contact list) B) add -tmp.
* s/imc/imcb/ for callback functions. Moved things aroundin nogaim.h aWilmer van der Gaast2007-04-15-2/+2
| | | | | | little bit, grouping things by category instead of original Gaim 0.58 filename.
* s/gaim_connection/im_connection/ and some other minor API changes. The restWilmer van der Gaast2007-03-30-27/+27
| | | | | | will come tomorrow. It compiles, I'll leave the real testing up to someone else. ;-)
* Fixed use of already free()d variable.Wilmer van der Gaast2006-12-03-2/+2
|
* Added handling of GET_BUDDY_* flags.Wilmer van der Gaast2006-11-13-5/+13
|
* Improved handling of JIDs: Bare JIDs are allowed (*sigh*) and caseWilmer van der Gaast2006-11-13-42/+126
| | | | | insensitivity. Probably not complete yet...
* Added #defines for XML namespaces.Wilmer van der Gaast2006-10-31-1/+1
|
* Now all IQ packets get an ID and cached packets get a "special" ID. ThisWilmer van der Gaast2006-10-20-4/+15
| | | | | | makes it easier to find out if an event handler has to be called for a reply packet.
* Proper cleanup of jabber buddy structures when removing a buddy from theWilmer van der Gaast2006-10-15-5/+52
| | | | | | | list, proper checking (and handling) of events related to buddies that aren't "hashed" yet, limit checks on priorityto setting, renamed JEP85 to XEP85, support for more XEP85 states.
* Special message when the XMPP session is ended because of a concurrentWilmer van der Gaast2006-10-12-1/+31
| | | | | | login, and now sending proper error responses to IQ packets we can't handle.
* Added resource selection (based on priority or time of last message) toWilmer van der Gaast2006-10-10-5/+22
| | | | | | | budd_by_jid(), added a full_jid property to easily address that resource without having to rebuild the full JID every time and implemented typing notification shite.
* The module now keeps track of all resources available for a buddy. ThisWilmer van der Gaast2006-10-09-0/+132
| | | | | | | | | means the buddy won't show up offline when one resource goes down (while there are still others available). It also remembers away state information for every separate resource. Later this system will be used to keep track of client capability information (Typing notices, yay...) and who knows what else.
* Moved handling of all IQ packets to event handlers. Cleaned up a LOT ofWilmer van der Gaast2006-10-08-9/+7
| | | | | mess in iq.c!
* Implemented a better node cache using a GLib hash, and preparing to addWilmer van der Gaast2006-10-08-12/+38
| | | | | | | event handlers that can be set when sending a packet to handle the reply to this specific packet. This should allow me to make the iq handler a lot cleaner.
* Fixed memory leak in jabber_buddy_ask() and added "handling" of type="error"Wilmer van der Gaast2006-10-02-0/+1
| | | | | <presence/> tags.
* Changing the resource string while online probably doesn't work.Wilmer van der Gaast2006-09-25-27/+17
|
* Handling of incoming authorization requests, manual block/allow. (Doesn'tWilmer van der Gaast2006-09-24-0/+38
| | | | | seem to be completely like how it works on other IM networks.)
* Updated <presence> stuff to handle changing the priority setting.Wilmer van der Gaast2006-09-24-7/+32
|
* Implemented a list of away states, using this for a better set_away(), andWilmer van der Gaast2006-09-23-0/+32
| | | | | got rid of the double <presence> tag sent because of presence_announce().
* Better detection of successful IQ authentication (using packet caching),Wilmer van der Gaast2006-09-22-2/+27
| | | | | properly working SASL authentication (although only PLAIN so far).
* It can send a valid (pre-XMPP) login packet. Lots of work to do, still...Wilmer van der Gaast2006-09-20-1/+21
|
* Added some pretty empty files.Wilmer van der Gaast2006-09-20-0/+48