Commit Graph

527 Commits

Author SHA1 Message Date
Yann Leboulanger a36edae2f6 prevent traceback when removing an inexistant session. Fixes #1288 2008-09-30 10:22:55 +00:00
Yann Leboulanger 7e5b9ab20d reply to XEP-0184 receipt requests in pm too. see #4339 2008-09-27 18:04:29 +00:00
Yann Leboulanger e236382f3d handle XEP-0203 (Delayed Delivery) and use it when forwarding unread messages via adhoc commands. Fixes #4347 2008-09-26 11:11:38 +00:00
js f260d83c80 Fix #4290 2008-09-05 19:09:01 +00:00
Yann Leboulanger aa6c163506 check that connection is still active in all handlers. Fixes #4261, #4258 2008-08-30 17:14:27 +00:00
Brendan Taylor 5d6b60be68 fix GPG mysteriously turning on when you open a chat window 2008-08-30 02:50:10 +00:00
Brendan Taylor 32b56a2328 move most of is_loggable out of the session object. fixes #4103 2008-08-30 01:31:25 +00:00
Yann Leboulanger bcc39c4e1c ask to change nickname for a groupchat only once. Fixes #4250 2008-08-29 08:06:28 +00:00
Yann Leboulanger a0e9a0d905 handle correctly forwarded messages. fixes #4246 2008-08-28 12:24:31 +00:00
Yann Leboulanger 9618bb77a4 fix FT proxy testing. We needed a receiver to connect to proxy to really test it 2008-08-27 13:11:46 +00:00
Yann Leboulanger 1e8e0f6067 no need of GUI classes in connection_handlers.py, socks5.py and secrets.py 2008-08-27 07:53:12 +00:00
Yann Leboulanger f63dcff5d3 prevent a traceback. Fixes #4236 2008-08-26 10:07:53 +00:00
Mateusz Biliński c0a26be684 Three core (raw) events (iq, message, presence) go also through Network Events Controller (layer between network library and Global Events Dispatcher, newly added) and from there they are dispatched through Global Events Dispatcher.
Ability to register new incoming network events (based on exisiting one) added. Modify-only network events are possible (eg. add some text each message, but don't create any new global event). Events creation can be chained.
Examples of new network events classes are in New Events Example plugin.
Events from src/gajim.py now all go through Global Events Dispatcher and only through it (easy to modify, in chain, data passed with them).
2008-08-18 16:35:14 +00:00
Julien Pivotto de4a23e751 See #4200.
* remove js from some headers
 * set coding:utf-8 to allow real names in headers
2008-08-15 17:31:51 +00:00
Julien Pivotto 8bc9bc29ae * Big headers review
* Remove some licencing problems
 * To do: same for images
 * See #4200
2008-08-15 03:20:23 +00:00
Yann Leboulanger 7f908667a4 don't take into account keyid in error presence: it's our own signed message 2008-08-11 15:30:24 +00:00
tomk cbfa9d97df - TLS classes refactored - NonBlockingTLS is now plugged to NonBlockingTCP and
derived (was plugged to NonBlockingClient which made it unusable for BOSH)
- Fixed HTTP CONNECT proxy socket
- Implemented workaround for the bug with insecure-connection warning dialog
  (unfortunately, this is not over - I just forbid the transport to send
  BOSH empty bodies until auth module is plugged, which is wrong and will
  break if user will wait more than "inactivity" (usualy thirty) seconds
  before clicking the dialog.
  This workaround works with ejb and opf, and also breaks connection with
  both of them if delay is too long.
- Implemented basic TLS over BOSH. It works only with OPF and poorly.
2008-08-05 23:52:35 +00:00
Yann Leboulanger 0317d93561 notify GUI about ERROR presences. Fixes #3667 2008-08-03 19:11:03 +00:00
Yann Leboulanger 409a1c315a prevent a traceback. fixes #4169 2008-08-01 10:27:38 +00:00
js 8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
Yann Leboulanger 64b73530c4 prevent traceback, fixed #4121 2008-07-29 07:36:44 +00:00
Yann Leboulanger cd6742a9e4 prevent TB when connection is lost. fixes #4112 2008-07-28 12:17:33 +00:00
Brendan Taylor abbdf8d5c9 attach resource to sessions so that only the relevant sessions are terminated when a contact goes offline 2008-07-26 05:28:15 +00:00
js f704701ba4 Support for displaying XEP-0184 receipts. 2008-07-18 20:24:34 +00:00
Brendan Taylor c24041a0df moved receipt handling after XEP 0200 decryption 2008-07-14 00:25:53 +00:00
js e67048bdfd If we receive an error PEP packet, don't treat it as incoming PEP event 2008-07-11 12:34:43 +00:00
Yann Leboulanger 9457c28a63 don't try the old (XEP-018) way to go invisible. It's not XMPP complient. That prevent to show the we are invisible but we are not. Fixes #4012 2008-06-25 09:25:43 +00:00
Yann Leboulanger d2b5b31bde acknowledge privacy list set iqs as required by XEP-0016 2008-06-25 07:35:35 +00:00
Yann Leboulanger 16fc7508ae remove unused function 2008-06-25 07:13:42 +00:00
Brendan Taylor d885e05500 don't send thread ids in message receipts unless there's a thread 2008-06-24 01:17:02 +00:00
Brendan Taylor 8b4627049b moved session negotiation handling from gajim.py to session.py 2008-06-21 19:12:47 +00:00
js 9c75374da4 Use the namespace variable. Sorry, forgot to change that here. 2008-06-17 18:17:30 +00:00
js 9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
Brendan Taylor 399233f293 detach sessions from controls when the highest priority contact changes.
this way we don't get multiple tabs when the remote user moves to another resource.
2008-06-10 02:58:17 +00:00
js 6fe9bee70b * Fixed a BT when receiving receipt request for offline messages.
* Fixed a BT when receiving receipt request for users not in roster.
2008-06-09 15:04:13 +00:00
tomk 6a15c9b9c9 initial cleanup of xmpppy perfomed, see #3260 2008-06-09 00:32:02 +00:00
js 593ed0c6d8 * Fix passing of message ID.
* Don't asnwer to receipt requests from users not in roster.
2008-06-08 15:51:55 +00:00
js c2eb4b5a9f Completely remove OTR.
Sorry, it just wasn't maintainable. The problem is the current libotr
API. I'm sick of working around the strange libotr API, sick of getting
HTML messages, sick of losing messages. The final argument for
completely removing it was that we can't get the message ID of a sent
msg anymore - which we need. I tried to work around this as well, but
there seems to be no way to wait for a signal in glib the way I would
need it for the workaround (I wanted to emit a signal in inject_message
and then wait for it after the call to otr_message_fragment_and_send
so the signal can pass us the message id). And the last reason is that
we're heading towards a new release and thus want to stabilize the code,
thus don't have time to work around even more libotr API strangeness.
I will give feedback to the libotr developers, who are currently
planning a new API, so that we can hopefully see OTR support once again
as soon as libotr4 is released.

Kjell already announced that he will continue his branch:
https://code.launchpad.net/~afflux/gajim/otr

I really hope the libotr devs will provide a sane API with libotr4 so
we can integrate OTR support again.

Oh, and I added one more try/except block for OS X.
2008-06-08 15:27:05 +00:00
js 8fefd0ede4 Comment options. 2008-06-07 19:52:13 +00:00
js a495d090c3 Initial XEP-0184 support.
TODO:
 * Implement section 5.
 * Think of a way to show in GUI
    Possible way: Grey out the sent msg until we receive a <received/>,
    but only if we know the other end supports XEP-0184.
 * Maybe implement section 6?
2008-06-07 19:47:19 +00:00
Jean-Marie Traissard e487aa7802 Change the way to remember last message time in groupchat again. Save the time on
disconnection or exit. Previous version seemed perfect, but if server don't have the
same exact time than us (always), lots of messages can be logged twice. Here we will
lost log for messages that were sent beetween we lost connection and we see it. But that
seems better for me. For previous version, see [9516].
2008-06-05 11:18:33 +00:00
Yann Leboulanger d1762dd9a0 improve new gmail e-mail popup window. Fixes #3252 2008-06-03 14:15:57 +00:00
Brendan Taylor ccca9332c6 fix undefined 'session' variable in _messageCB 2008-06-03 01:13:30 +00:00
Brendan Taylor dc89b61d37 fix lazy session binding to reuse sessions and pick them up from pending events 2008-06-02 23:26:40 +00:00
Jean-Marie Traissard d927d260c2 Removing tic tac toe game. Maybe one day a full version in a plugin ? :) 2008-06-01 23:07:34 +00:00
Yann Leboulanger 533e955cf1 make pep work, move config options per account, make publish_tune configurable in account context menu. fixes #3954 2008-05-30 21:43:53 +00:00
js 37b6f7058a [Kjell Braden] Fix OTR SMP. 2008-05-29 18:42:58 +00:00
js 6c9063b702 [Kjell Braden] Fix HTML on OTR.
@bct: When moving the OTR stuff, you would've needed to adjust the
XHTML killing part. This patch fixes it. I didn't even notice since
I have XHTML disabled globally.
2008-05-27 14:50:54 +00:00
Yann Leboulanger c127493e58 remove pep options from pref window, store them per account, store caps_hash per account. see #3954 2008-05-27 10:24:29 +00:00
Brendan Taylor df5200b3bb try not to send session termination messages to non-XEP-0201 clients 2008-05-25 21:28:32 +00:00
Brendan Taylor f7874d29c7 reuse chat controls after session termination
fixes #3950
2008-05-23 23:27:08 +00:00
Brendan Taylor f68ffc3816 not every OTR message needs a session 2008-05-23 23:26:53 +00:00
Brendan Taylor 4feacc73ab moved OTR stuff from session.received to connection._messageCB
fixed lock icon when session has been terminated
2008-05-20 00:44:30 +00:00
Brendan Taylor f413a8a7e8 should fix zeroconf-related tb on exit 2008-05-19 18:27:45 +00:00
js 8a6615a5d0 Renable OTR. I found a way no messages will get lost, but it's more
or less a workaround. We never let libotr handle unencrypted messages
now and handle notifying the user about the message not being encrypted
ourself.
2008-05-18 19:11:13 +00:00
Brendan Taylor e5fac7315e don't create sessions for pubsub and xep-0070 messages 2008-05-18 17:35:00 +00:00
Brendan Taylor 517d962221 fixed link-local messaging (broken by session-centric) and removed a ton of duplicated/unused code 2008-05-17 02:23:46 +00:00
js 96a5b497a8 * Remove old code to update status to current track.
* Don't bind the track listener when not enabled anymore.
* Remove the signal / add the signal when changed in preferences.
2008-05-15 19:52:04 +00:00
Brendan Taylor 2552e1024f fixed dropped messages after initiating a tic-tac-toe game with a contact that doesn't support sessions 2008-05-14 02:57:29 +00:00
Brendan Taylor d511b5afc4 merged in session-centric branch, with fixes for OTR compatibility 2008-05-13 01:59:10 +00:00
js 573568f9ac Reverted r9614 and r9615.
Sorry, bct, but I think it is to early to merge that as it completely
breaks. It seems nobody in gajim@conference.gajim.org considers it
usable yet.
I don't know if you got asterix' ok for it and I'm sorry if I reverted
it now although you had his ok, but having broken trunk is very
contra-productive. I think it was just too early to merge.
2008-05-11 13:17:28 +00:00
Brendan Taylor 2162c3730a merged in session_centric branch 2008-05-11 01:19:59 +00:00
js 4eeb96368b Store otr_userstates at the right place and create it the right way.
This fixes the crash when creating a new account, which made Gajim
unusable on systems where it never ran before.
2008-05-10 21:29:47 +00:00
js 64ee7c14a7 Fix a backtrace. session isn't always defined here. Fixed. 2008-05-10 14:23:55 +00:00
js 435042968e Added OTR support.
Work done by Kjell Braden <fnord@pentabarf.de>.
Some fixes done by me.
2008-05-09 12:35:25 +00:00
Yann Leboulanger 3193a8e8cf [Florob] Send and handle nicknames reveices through PEP. Fixes #3651 2008-05-05 21:55:59 +00:00
Jean-Marie Traissard 75ffe12157 Change very bad var names 2008-05-05 03:18:09 +00:00
Jean-Marie Traissard 5689daf66b In configure room, works even if we receive an affiliation list with more than one affiliation inside.
More logical, more secure and example 90 in xep-0045 says it can happen. Deal also with affiliation 'none' (don't show it)
2008-05-05 00:38:52 +00:00
Brendan Taylor d15b9dea6e reuse existing chat sessions and controls 2008-05-03 16:52:27 +00:00
Brendan Taylor 99f2997d27 pm fixes 2008-05-03 00:10:17 +00:00
Brendan Taylor 20beea4b49 fixed groupchat 2008-05-02 02:32:28 +00:00
Yann Leboulanger f4f38e3738 type in identities is not mendatory 2008-04-22 23:52:04 +00:00
Stephan Erb 92b596a698 Use startswith() instead of string slicing to check for prefixes or suffixes.
It's cleaner and less error prone, so simply use it everywhere.
2008-04-21 20:39:55 +00:00
Jean-Marie Traissard 68fdb002df Use good message time 2008-04-21 16:35:39 +00:00
Jean-Marie Traissard 94580b3019 Change the way last_history_time for room is saved. Save time in mem at each message logged. When closing
control, save the value in rooms_last_message_time table. Previous version could introduce duplicate logs or
messages not logged.
2008-04-21 15:48:06 +00:00
Jean-Marie Traissard 30f1a15efb Don't log room description at each gc connection 2008-04-21 00:00:52 +00:00
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Yann Leboulanger 54608822a3 always say we want to receive pep notifications even if server don't support it. 2008-04-19 22:08:40 +00:00
Yann Leboulanger 0158db6001 show better error message when sending message to a room where we are no more connected. fixes #3870 2008-04-18 18:35:53 +00:00
Yann Leboulanger ef97e91a1d put namespace name in protocol.py 2008-04-18 18:19:33 +00:00
Yann Leboulanger 041969309d add many supported features to disco#info reply. fixes #3872 2008-04-18 18:10:12 +00:00
Jean-Marie Traissard 968b2acc4f http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with
'is' or 'is not', never the equality operators."
Comparisons to None part; second one...
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:26:07 +00:00
Jean-Marie Traissard 2ce13dc40e http://python.org/dev/peps/pep-0008/ " Comparisons to singletons like None should always be done with 'is' or 'is not', never the equality operators."
Comparisons to None part
roster_win.py is NOT checked here (waiting for modelfilter)
2008-04-18 00:02:56 +00:00
Brendan Taylor 76808901eb check tic-tac-toe win conditions, slimmed down _messageCB some more 2008-04-15 05:32:45 +00:00
Brendan Taylor b170e77cdb functioning tic-tac-toe :D 2008-04-11 03:52:45 +00:00
Yann Leboulanger b04d6aea63 correctly detect vcard error from groupchat participants (with fake jid) 2008-04-09 21:30:12 +00:00
Brendan Taylor d034078c03 rearranged _messageCB and split it into multiple methods 2008-04-06 22:21:46 +00:00
Yann Leboulanger cdb31a2b55 remove use_pep option, always PEP it to send played song. fixes #3053 2008-03-03 22:42:04 +00:00
Yann Leboulanger 13541c0425 ability to configure pubsub nodes. see #3053 2008-02-15 22:55:21 +00:00
Brendan Taylor c8cae71099 merged trunk 2008-02-14 02:20:07 +00:00
Yann Leboulanger 419652d61f correctly detect XEP-0199 answer from server. 2008-02-08 07:58:23 +00:00
Yann Leboulanger 85cc4889ec use XMPP ping (XEP-0199) to detect connection lost at applicatin level. fixes #2767 2008-02-07 23:53:02 +00:00
Brendan Taylor 381ba838b9 post-refactor traceback fixing 2008-02-06 05:24:07 +00:00
Brendan Taylor 0b574d2360 move message handling into ChatControlSession 2008-02-06 01:40:51 +00:00
Yann Leboulanger e8b7778521 detect jabber:iq:last and jabber:iq:version errors by IDs. fixes #3711 2008-02-05 14:50:21 +00:00
Brendan Taylor 0b48b05218 merged trunk into session_centric branch 2008-02-05 03:09:31 +00:00
Stephan Erb 6fdd7c0f88 Rework GPG behaviour:
Only encrypt when the receiver is trusted. You have to sign its key or it has to be signed by someone you trust. Fixes #109

Make checkbox insensitive when GPG is disabled on an account (or no passphrase given).

Auto assign trusted keys on received presence. Deny encryption on missmatch of assigned key and signing key. Fixes #3376

Do not disable encrypted when receiving an unencrypted message. Print whether a received message was encrypted or not.

TODO: Remove togglebutton, its useless now
2007-12-29 23:28:27 +00:00
Stephan Erb fef742c863 Refactor the way we decide whether GPG is usable or not: Ability to change keys when no valid passphrase could be entered.
See #1210. Workaround for unavailable keys.

Remove useless except block: import of GnuPGInterface is the same on Debian and non Debian systems.
2007-12-28 18:49:28 +00:00
Jean-Marie Traissard 14bf5ed62c pyflakes checks, remove unused imports, mainly 2007-12-27 21:52:45 +00:00
Jean-Marie Traissard 314a52708e CodingStandards : No space in indentation 2007-12-27 18:58:07 +00:00
Jean-Marie Traissard fb273aeadf Don't process roster during gpg_passphrase dialog is showed. Fixes #3634,
hopefully... :p Please test
2007-12-27 17:06:30 +00:00
Yann Leboulanger 4f4e9a3723 don't crash when dbus is not supported 2007-12-15 12:15:10 +00:00
Yann Leboulanger 554194d954 fix traceback when we get an error from pep service. see #3053 2007-12-13 20:44:30 +00:00
Yann Leboulanger 48786d39ff correctly decode timezone name. fixes #3569 2007-12-13 08:37:20 +00:00
Yann Leboulanger a645006bf8 merge diff from trunk 2007-12-12 08:44:46 +00:00
Yann Leboulanger dd9fd681b5 [Elmar Hoffmann] Advanced option to disable presence signing. fixes #3601 2007-12-04 09:57:40 +00:00
Yann Leboulanger 55385c5356 \x00 chars are not allowed in C (end of string) so in GTK. But we can get from gpg encrypted messages. 2007-12-03 21:29:12 +00:00
Yann Leboulanger c94d22dcb1 correctly answer on disco#items on our ad hoc commands 2007-12-01 11:46:46 +00:00
Yann Leboulanger 243ece28ba fix possible traceback when we get a signed presence 2007-11-24 20:08:24 +00:00
Yann Leboulanger 5fb061478f signe -> sign 2007-11-22 14:05:05 +00:00
Yann Leboulanger 8722df168c typo again 2007-11-22 14:00:01 +00:00
Yann Leboulanger b833bd3cb7 typo 2007-11-22 13:55:50 +00:00
Yann Leboulanger 08e577c637 fix GPG behaviour 2007-11-22 13:53:12 +00:00
Yann Leboulanger d19c28930a fix missing ) 2007-11-22 11:03:45 +00:00
Yann Leboulanger 0ceb41f650 request GPG password only when connected to server, before sending presence. fixes #3483, #3375, #3115 2007-11-22 10:41:57 +00:00
Yann Leboulanger 1c7c459c5f correctly decode string returned by strftime when we get a jabber:iq:time request. fixes #3569 2007-11-21 09:49:18 +00:00
Yann Leboulanger 483604cd0b remove useless print 2007-11-16 18:25:45 +00:00
Yann Leboulanger a5e8adf232 detect when we get our own presences 2007-11-16 10:51:52 +00:00
Yann Leboulanger 605caae2b8 My name has changed 2007-10-22 11:33:50 +00:00
Yann Leboulanger 22c1aeda29 next release will be GPL v3. fixes #3290 2007-10-22 11:13:13 +00:00
Yann Leboulanger 77eab243e6 when we get a 40* error from server about private storage, it doesn't mean server doesn't support it. 2007-10-21 16:59:47 +00:00
Yann Leboulanger 3db9f2ddd9 [Jonathan Schleifer] fix filetransfer. fixes #3498 2007-10-14 16:15:57 +00:00
Yann Leboulanger 314d3e8a81 [kingshivan] really cancel canceled file transfers. fixes #3366 2007-10-11 16:48:28 +00:00
Yann Leboulanger 34f04c69b7 stoped -> stopped 2007-10-10 16:19:22 +00:00
Yann Leboulanger af681cc5ba ignore resource when we get a subscription request 2007-10-09 19:52:09 +00:00
Brendan Taylor bd8ececb46 encrypted secret storage and an improved SAS verification dialog 2007-09-29 20:51:01 +00:00
Yann Leboulanger 5c80d100b7 handle - in version name. It's not taken into account for config file updates and caps. fixes #3011. svn version is not 0.11.2.0-svn 2007-09-27 21:34:00 +00:00
Yann Leboulanger 530cc9e62f [asac] support jabberdata in message elements. fixes #2225 2007-09-27 20:39:42 +00:00
Yann Leboulanger 96e6457c30 [torypatnoe] use our helper function to parse time. fixes #3462 2007-09-25 11:36:13 +00:00
Yann Leboulanger 6667eb5e29 send our local ip only once 2007-09-16 17:28:51 +00:00
Jean-Marie Traissard 76b6680650 Do NOT log GC that we said we don't want to log 2007-09-15 13:05:23 +00:00
Yann Leboulanger 4f09fea1b5 [js] Don't lookup ft_override_host_to_send. fixes #3246 2007-09-13 22:12:49 +00:00
Yann Leboulanger 8ec061f5f6 prevent the user before sending a file to a groupchat contact that doesn't know his real jid. 2007-09-12 23:12:29 +00:00
Brendan Taylor d536fc9648 oops, my last checkin was incomplete 2007-09-10 21:59:27 +00:00
Brendan Taylor abec26cdfc minor adjustments to how sessions are handled (partially fixes #3407) 2007-09-10 21:58:15 +00:00
Nikos Kouremenos 20b7d165c5 yeah nothing as usual :/ 2007-09-08 23:52:52 +00:00
Brendan Taylor d5900cd384 fix determining whether a message was encrypted 2007-08-29 06:08:06 +00:00
Yann Leboulanger 62edcc71de make python-crypto an optional dependency 2007-08-27 13:36:24 +00:00
Yann Leboulanger 09388ddf1a fix missing import 2007-08-26 07:11:00 +00:00
Yann Leboulanger c9a407ca52 [Brendan Taylor] Gsoc 2007 work : end to end encryptions. Fixes #544 2007-08-25 22:42:35 +00:00
Yann Leboulanger b989617158 convert order to int 2007-08-24 13:28:39 +00:00
Yann Leboulanger 78f2c8c021 [roidelapluie, elghinn, msieurhappy, xbright and me] chat to muc convertion. see #2095 and #1408. TODO: DND 2007-08-21 23:13:03 +00:00
Brendan Taylor eb93f9a172 advertise xep-0116 support via disco 2007-08-20 19:02:58 +00:00
Brendan Taylor 88e49ffa46 don't create uneccessary sessions (eg. for groupchat messages), bugfix for pms 2007-08-20 17:33:12 +00:00
Brendan Taylor 0230c91e4c esession bugfixes 2007-08-20 08:16:48 +00:00
Yann Leboulanger 176593db97 don't allow to bookmark a room on server that don't support private storage. 2007-08-19 15:32:41 +00:00
Brendan Taylor 9985b784d5 bugfixes, send not-acceptable for fields with only unsupported options 2007-08-18 08:59:36 +00:00
Brendan Taylor e1c4d80e65 notify on begin/end encryption 2007-08-17 17:26:05 +00:00
Piotr Gaczkowski 55a7061ea3 Better Tune support 2007-08-10 20:18:32 +00:00
Yann Leboulanger ea24ee82e5 merge diff from trunk to pep branch 2007-08-09 15:39:18 +00:00
Yann Leboulanger 3b52e0d73b fix TB: get room_jid var before using it 2007-08-07 12:14:54 +00:00
Tomasz Melcer 459c73f961 Jingle: UI entry point and lots of small changes. 2007-08-06 23:19:57 +00:00
Yann Leboulanger 987f6fe01f show room jid in error messages when unable to join it. 2007-08-06 09:59:14 +00:00
Yann Leboulanger 85158665d4 fix traceback when receiving a file 2007-07-25 23:02:55 +00:00
Yann Leboulanger c131a04df8 request last_status_time and os_info to real jid if we know it. fixes #3304 2007-07-22 18:25:43 +00:00
Julien Pivotto 0314f23aa4 Add notification of Configuration Changes in MUC. See #3270.
http://www.xmpp.org/extensions/xep-0045.html#roomconfig-notify
2007-07-19 10:06:59 +00:00
Julien Pivotto 015ee132ae XEP-0045: Multi-User Chat
* Handle Multiple status code in MUC.
 * Warn the user if room logging is enabled (
http://www.xmpp.org/extensions/xep-0045.html#enter-logging ). Fix #3270.
2007-07-19 09:27:33 +00:00
Brendan Taylor fdef1c3d72 shared retained secrets 2007-07-17 08:08:27 +00:00
Yann Leboulanger 3f5327dc6f [mrk] handle Google Apps For Your Domain. fixes #3163 2007-07-11 16:32:18 +00:00
Yann Leboulanger 952e6d96e3 catch disk full errors. fixes #2937 2007-07-09 16:01:19 +00:00
Yann Leboulanger dc2dd87a31 prevent message spoofing. Thanks Misc. Fixes #3281 2007-07-04 13:29:06 +00:00
Brendan Taylor 2bed6a522a fixed a traceback 2007-07-03 18:00:09 +00:00
Tomasz Melcer 1c0aa7ad10 Caps: caps are queried, results are stored in cache. 2007-06-30 17:31:27 +00:00
Travis Shirk 270c956db3 Handle malformed timestamps (which would cause an unhandled exception and hork the connection)
and XEP-82 (dashes in timestamps).
2007-06-29 21:21:08 +00:00
Brendan Taylor 6fe668d863 disable logs in encrypted sessions. 2007-06-29 04:12:08 +00:00
Tomasz Melcer 744d445c55 Caps: querying caps disco node (no checking result yet) 2007-06-27 22:32:35 +00:00
Brendan Taylor 4b53db9fe6 properly terminate sessions 2007-06-26 22:52:50 +00:00
Yann Leboulanger abcb48d1e0 improve pubsub support. fixes #3103 2007-06-24 22:33:00 +00:00
Yann Leboulanger fc153017ec ask password to user when we try to connect to a password protected room. fixes #2890 2007-06-24 21:19:41 +00:00
Yann Leboulanger 12bb72059f ability to forward unread messages through adhoc commands. fixes #1910 2007-06-23 19:44:09 +00:00
Brendan Taylor d1fe7b41f3 functioning XEP-0217 implementation! (initiation only) 2007-06-17 10:39:19 +00:00
Yann Leboulanger d2914f642b add minimize button to manage_bookmarks window. see #3034 2007-06-13 20:24:04 +00:00
Brendan Taylor 62cf72910f functioning XEP-0200 implementation (hardcoded keys and counters) 2007-06-11 22:42:29 +00:00
Yann Leboulanger 7ef57b505d discover our server at startup even if we don't use filetransfert proxies. fixes #3224 2007-06-09 12:26:30 +00:00
Brendan Taylor 7898686680 reverted back to per-JID windows, pass around sessions instead of thread_ids 2007-06-05 23:19:34 +00:00
Brendan Taylor 370818d982 updated session handlers 2007-06-05 22:17:34 +00:00
Brendan Taylor 17c5bf5e52 massive everything-breaking overhaul for per-session windows 2007-06-05 21:26:45 +00:00
Yann Leboulanger fbd89e8d90 [elghinn] add common.xmpp.NS_PING in disco#info 2007-06-03 14:06:25 +00:00
Yann Leboulanger 1600ebf73b [elghinn] fix disco#items without node 2007-06-03 14:04:36 +00:00
Yann Leboulanger 3d4c7bf547 [elghinn] fix entity time support (xep 90 and 202) 2007-06-03 14:00:09 +00:00
Yann Leboulanger 07b324ced4 ability to see pep nodes and their access model. TODO: ability to change it 2007-06-03 10:30:34 +00:00
Piotr Gaczkowski e3ef0821b3 Merge with trunk 2007-06-03 10:04:20 +00:00
Brendan Taylor 46bc373cc3 pop up a (useless) DataFormWidget when someone initiates a session negotiation 2007-06-01 17:09:56 +00:00
Brendan Taylor ec37a97ed6 add <thread/> to replies to single message that contain a <thread/> 2007-05-30 15:31:41 +00:00
Yann Leboulanger a45a14546a handle correctly vcards in groupchats : ask them to real jid if we know it, but considere it arrive from fake jid. Fixes #3172, #3173 2007-05-20 15:41:20 +00:00
Yann Leboulanger eca640f2f7 don't ask vcard twice to the user when we enter a groupchat (one to fake jid and one to real jid) 2007-05-13 08:11:32 +00:00
Yann Leboulanger 1674110503 show transport nickname if there is one and user hasn't set a nickname. fixes #3094 2007-05-12 20:30:26 +00:00
Yann Leboulanger 31101e5049 when we're disconnected because of a resource conflict, ask the user another resource. Fixes #3044 2007-05-09 20:59:29 +00:00
Yann Leboulanger 3455d9e578 consider all unknown types in presence as if there were no type. fixes #3144 2007-05-07 19:55:27 +00:00
Yann Leboulanger 9c67eb961c [Peritus] handle confirmation requests sent via messages for XEP-0070. fixes #2995 2007-04-30 20:27:11 +00:00
Yann Leboulanger 776c4614d5 [roidelapluie] add ability to block / unblock a contact / group directly from roster. see #253 2007-04-24 19:56:24 +00:00
Yann Leboulanger 9ed8a292f2 support JEP-0055 (search) for non-dataform services. TODO: improve GUI 2007-04-19 20:54:42 +00:00
Yann Leboulanger 41bdb0c7f6 begining of XEP-0055 (search) implmentation. For the moment, works only with dataforms. see #1922 2007-04-19 13:31:28 +00:00
Yann Leboulanger c02eb73bd0 add pep_supported var to pep branch too 2007-03-30 19:16:44 +00:00
Yann Leboulanger 287a80e0c7 add a pep_supported variable to Connection class. 2007-03-30 19:12:46 +00:00
Piotr Gaczkowski 06f43c1e2a Mood and Activity shown in tooltips. Caps set properly 2007-03-29 19:40:50 +00:00
Piotr Gaczkowski 149b0fcdef Buggy. Don\'t touch 2007-03-29 19:04:14 +00:00
Piotr Gaczkowski 512db7618b Lame Mood and Activity support. Announcing caps. 2007-03-28 21:18:16 +00:00
Piotr Gaczkowski 5f9eab3c62 First buggy commit 2007-03-25 22:16:48 +00:00
Yann Leboulanger 5920d03aee ability to destroy a room when we are owner, give a reason and alternative room
jid. fixes #3031
2007-03-11 20:14:53 +00:00
Yann Leboulanger 0bacc77364 [misc] fix entity caps behaviour. fixes #3001 2007-03-08 08:57:20 +00:00
Yann Leboulanger 5b63c41c41 use new dataform widget in register agent window. Remove no more used old DataFormWindow. 2007-02-15 09:18:24 +00:00
Yann Leboulanger 3534bb30cd use new dataform widget in groupchat config window 2007-02-14 16:48:25 +00:00
Jean-Marie Traissard 68619a5597 No space in indentation, /src/common/ part 2007-02-04 18:57:25 +00:00
Jean-Marie Traissard e4fca50eb7 If we got sha from disk and don't ask for new avatar, store sha in mem 2007-02-04 00:45:14 +00:00
Jean-Marie Traissard 3f16220afb Group chat avatars fixs :
- Stop saving avatars of participants without their resource.
- Complement of [7927], don't save sha before avatar. Really fix #2956
- Don't save sha if avatar not readable.
2007-02-03 23:56:40 +00:00
Jean-Marie Traissard f6a0fe4724 Don't store avatar sha until we really have avatar. Fixes #2956. 2007-02-01 14:51:14 +00:00
Yann Leboulanger 5fc442b6f5 better indentation 2007-01-31 11:31:07 +00:00
Jean-Marie Traissard e62a01d6d9 utf problem ? 2007-01-30 18:32:15 +00:00
Jean-Marie Traissard f4d43979ed Verify avatars'sha on hdd in muc too, don't send sha when disconnecting from muc 2007-01-29 22:04:22 +00:00
Yann Leboulanger 8a0c47e4a0 [Michal Vaner] add ability to send several ip when we do file transfers, and send all local IPs. fixes #2953 2007-01-28 19:11:39 +00:00
Yann Leboulanger f450c0eb65 [misc] XEP-0199 (Xmp ping) support.fixes #2947 2007-01-27 10:19:53 +00:00
Yann Leboulanger 27ffd437a9 [misc] advertise we support XEP 85, 50 and 30. fixes #2948 2007-01-27 10:16:46 +00:00
Yann Leboulanger 852974efa7 ability to set and receive an empty subject. fixes #2938 2007-01-26 18:30:45 +00:00
Yann Leboulanger be81dbcc40 negate timezone so it's positive east of Greenwitch. fixes #2927 2007-01-23 20:31:25 +00:00
Yann Leboulanger ec8a294053 prevent TB 2007-01-17 08:04:51 +00:00
Yann Leboulanger 476908a54b ignore unparsable vcards. fixes #2826 2007-01-12 10:10:01 +00:00
Jean-Marie Traissard 775b85a83e Var name, removed unused import, thanks pyflakes 2007-01-11 22:41:00 +00:00
Yann Leboulanger 7433835994 add an option to override incoming message type. fixes #2804 2007-01-05 20:38:36 +00:00
Yann Leboulanger 70bf104cfc [misc] XEP-0202 (Entity Time) support. fixes #2830 2006-12-28 16:27:41 +00:00
junglecow a4655276fe [Trunk]
- In verbose mode, print encodings. (Especially for Windows users who don't have Python) (gajim.py)
 - Attempt at fixing traceback when getting user's home directory in Windows. See #2812. (c/configpaths.py)
 - Show 'error' icon next to account while waiting for reconnect. Fixes #2786. (c/connection_handlers.py, c/gajim.py, c/connection.py)
[PyOpenSSL]
 - Fix 100% CPU usage and hanging connection when server closes connection on us. (c/x/transports_nb.py)
 - Fix 'hanging' connection when server closes the connection on us before we can open the XML stream. (Disconnect handler didn't get called.) (c/x/client_nb.py)
 - Change prints to logger calls, various enhancements to debug printing, reduce spam (c/x/transports_nb.py)
 - this → self (c/x/transports_nb.py)
 - Call _do_receive() once to collect error message from socket, when error flag is raised in scheduler. (c/x/transports_nb.py)
2006-12-20 20:40:08 +00:00
Yann Leboulanger 658629dbcc answer correctly to disco#info when it contains node. We are now complient with XEP115. fixes #2713 2006-12-02 17:02:53 +00:00
Yann Leboulanger f1e5984909 send in caps (XEP-0115) that we support XHTML-IM 2006-12-02 12:06:14 +00:00
Yann Leboulanger d5b62294ab remove useless test in get_cached_vcard func. fixes #2717 2006-12-01 21:23:24 +00:00
Yann Leboulanger ac4fab231c remove gc contact avatar when he removes his avatar. see #2718 2006-11-28 16:41:31 +00:00
Yann Leboulanger e9db205110 remove avatar files when we publish a vcard without an avatar. see #2718 2006-11-28 15:40:08 +00:00
Tomasz Melcer c52b9ea662 Small fixes thanks to `pyflakes`. 2006-11-20 19:34:11 +00:00
Tomasz Melcer 175a792cfe Merging changes from trunk (6774:7465) 2006-11-18 20:52:28 +00:00
Tomasz Melcer 9b29c4c8b8 Merging changes from trunk (6561:6774) 2006-09-13 16:47:58 +00:00
Tomasz Melcer 8f4b972a62 PubSub support: browse, subscribe and unsubscribe; posting atom entries to groups. 2006-08-20 10:18:20 +00:00
Tomasz Melcer fa6ae3b4be Simple support for pubsub.com notifications. 2006-07-21 13:52:36 +00:00
Tomasz Melcer 585ab90e92 Merging changes from trunk (6496:6561) 2006-07-17 19:30:53 +00:00
Tomasz Melcer de23ba2a15 Moved some code to ease maintenance. 2006-07-17 13:40:25 +00:00
Tomasz Melcer 477f33b6b9 Generic support for exposing commands (untested). 2006-07-15 13:27:57 +00:00
Yann Leboulanger bc26593974 use gettext.install. Fixes #497 2006-06-15 06:49:04 +00:00
Yann Leboulanger 59c3b7b3c8 JEP 172 support (user nickname) Fixes #464 and #884 2006-06-01 15:23:38 +00:00
Yann Leboulanger d7d0e25d25 print_status_in_muc is not a string which can be 'all', 'none' or 'in_and_out'(default one). version is 0.10.0.1 to update this variable.
show_status becomes print_status in server (show_status is still read for transition)
2006-05-10 16:25:57 +00:00
Yann Leboulanger 9abd27fbf8 we can now configure if we want to see all status or only enter/leave in bookmarked rooms. 2006-05-07 21:44:57 +00:00
Yann Leboulanger d25d056677 be sure that transport is really removed before we start to remove its contacts. 2006-05-01 18:29:12 +00:00
Dimitur Kirov 36426778f0 add gajim caps, fixes #608 2006-05-01 14:15:28 +00:00
Dimitur Kirov fcda778746 converted line end to <LF> 2006-04-29 09:44:47 +00:00
Yann Leboulanger 98f9525a43 prevent TB when we get a conference vcard. Fixes #1887 2006-04-26 08:11:16 +00:00
Dimitur Kirov 42118e7423 reverted [6216] because of #1889 2006-04-24 18:58:58 +00:00
Dimitur Kirov 029668bf20 unsupported locale error is skipped and
we use en for wiki search (better to search
in english wikipedia than not having gajim at
all)
2006-04-22 08:53:01 +00:00
Yann Leboulanger 228b841e6f no_log_for is a space separated list. Fixes #1876 2006-04-20 12:46:51 +00:00
Yann Leboulanger e42fc1ac46 ask vcard of contact when we don't have it and we receive his avatar sha 2006-04-19 15:16:51 +00:00
Yann Leboulanger 9fa62c5529 nothing: remove ^M from win 2006-04-19 10:06:59 +00:00
Yann Leboulanger 1a3a987556 auto-authorize transport contacts when we add a transport. fixes #326 2006-04-18 14:30:00 +00:00
Dimitur Kirov 927b6d09bc destroy dialogs on delete event
don't send streamhosts if they have been
already sent
2006-04-13 18:00:04 +00:00
Yann Leboulanger 2a5e41e06a update groupchat contacts avatar when they change it, and send our presence to groupchat when we change our vcard 2006-04-12 12:55:06 +00:00
Dimitur Kirov c45426b18f register resultCB for testing proxy activation
results
2006-04-11 22:23:51 +00:00
Yann Leboulanger fe2ec40ad7 new metacontacts JEP (not yet published) uses order instead of priority. 2006-04-11 20:16:33 +00:00
Yann Leboulanger 4e2f02c725 fix import (add missing, remove useless) 2006-04-11 18:36:09 +00:00
Yann Leboulanger be246e984d update avatar files when we update our vcard 2006-04-11 18:28:31 +00:00
Dimitur Kirov 97dc7215df keep reference to unread messages untill they
are printed in tv
2006-04-10 22:08:02 +00:00
Yann Leboulanger eb8cc5b7ea show correctly error message and log them in DB. fixes #1802 2006-04-10 14:00:04 +00:00
Yann Leboulanger cb242e2bbd remove contact from server list if it's useless (sub=ask=name=groups=None). Fixes #1821 2006-04-10 08:24:55 +00:00
Nikos Kouremenos 47a8ddccd5 make sure that when we log, msg is not None 2006-04-09 19:46:11 +00:00
Dimitur Kirov 29852a931f don't try to send if connection is down
(this check should be done in all functions
 that may come from user response to dialogs)
2006-04-08 16:40:43 +00:00
Dimitur Kirov cd8a5dca72 file tag is needed only when restoring previous
transfers
2006-04-04 08:31:36 +00:00
Dimitur Kirov 2c41c831b9 no file tag for stream initiation result
(#1796)
2006-04-04 08:27:27 +00:00
Nikos Kouremenos bed7a29414 fix a typo 2006-04-02 15:11:27 +00:00
Yann Leboulanger 90e5561860 JEP 0091 support: timestamp in presences. Fixes #1675 2006-04-01 18:16:06 +00:00
Yann Leboulanger 88730b1ea1 add an ui option to disable the use of FT proxies. Fixes #1751 2006-03-27 08:28:05 +00:00
Yann Leboulanger fb758eaf89 use sanitize_filename func before writing a file to HD. Fixes #1722 2006-03-26 11:46:04 +00:00
Yann Leboulanger 3275bb9f9b workaround for ejabberd bug: it returns disco#info without an indentity. JEP0030 says it's a MUST. We can now browse online / all / offline users. Fixes #865 2006-03-25 00:46:42 +00:00
Yann Leboulanger 22959b6c4c typo 2006-03-24 13:44:26 +00:00
Yann Leboulanger f8db75e255 New metacontact way. JEP is not published yet, but I talked with the author. Old metacontact info are removed automaticaly 2006-03-24 12:55:56 +00:00
Dimitur Kirov 1f85960c64 #1735 don't stop completed transfer 2006-03-23 00:11:50 +00:00
Dimitur Kirov be25f1b8ac missing import 2006-03-22 16:36:56 +00:00
Dimitur Kirov 92691fa6f6 disconnect transfers for contact which goes
offline
2006-03-21 23:43:26 +00:00
Dimitur Kirov 3f0ac6b3d9 fix imports 2006-03-21 15:57:44 +00:00
Dimitur Kirov 5a1ff6a4d2 discover proxy transport for server (#803) 2006-03-20 23:17:36 +00:00
Dimitur Kirov ae33330ac6 send fake activate stanza to assert that proxy
works correctly
2006-03-20 21:24:10 +00:00
Dimitur Kirov b90e546927 proxy65_manager resolves socks5 proxies at gajim
startup and account login
2006-03-19 20:43:30 +00:00
Nikos Kouremenos 85fbcb79e9 fix tb 2006-03-19 14:59:17 +00:00
Dimitur Kirov 540103f381 arranged some methods from connection.py in
classes defeined in connection_handlers.py
2006-03-19 14:54:00 +00:00