Commit Graph

2302 Commits

Author SHA1 Message Date
Yann Leboulanger 44fc7ddd0c fix caps hash computaion according to XEP-0115. fixes #3925 2008-05-14 18:30:39 +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 ade56853fe moved session.remove_events. fixes #3942 2008-05-14 00:34:02 +00:00
Brendan Taylor d511b5afc4 merged in session-centric branch, with fixes for OTR compatibility 2008-05-13 01:59:10 +00:00
js fc762157c0 * Disable OTRv1 by default.
* Don't send our JID on OTR request! It might reveal our JID in MUC!
2008-05-11 17:18:44 +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 24203f367f fixed use of get_control 2008-05-11 01:48:10 +00:00
Brendan Taylor 2162c3730a merged in session_centric branch 2008-05-11 01:19:59 +00:00
js 4c3dc0b092 That still was the wrong place, it was initialized too early. Fixed. 2008-05-10 23:42:29 +00:00
js 91211e189d Fix DnD FT on Windows:
* Fix helpers.py so URL is decoded correctly.
* Fix code in roster_window.py so the \0 that's alway the last file
  on win32 is ignored.

This also fixes and closes #2398.
2008-05-10 23:21:28 +00:00
js e335055709 Fix broken exception handling for OTR in connection.py. 2008-05-10 22:22:09 +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 04725e830c Fix file transfers on win32. 2008-05-10 15:40:27 +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
Yann Leboulanger da3e8a7328 remove a connect_failure callback when we are connected. Fixes #3914 2008-05-05 08:50:07 +00:00
Yann Leboulanger 2560f844c1 [Florob] ability to retract pubsub events. fixes #3913 2008-05-05 07:48:13 +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
Stephan Erb f217ae91f5 Fix indentation. Please test patches before commiting... 2008-05-05 00:05:20 +00:00
Yann Leboulanger ea8af84886 [mrk] remove an old gnomekeyring workarround. Fixes #3920 2008-05-04 21:44:05 +00:00
Brendan Taylor d15b9dea6e reuse existing chat sessions and controls 2008-05-03 16:52:27 +00:00
Jean-Marie Traissard bd812b8f26 [elghinn] Specify exception we want to catch so we see if there are others
problems.
2008-05-03 01:30:05 +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
Brendan Taylor d4a766963f multiple chat session windows per contact. groupchat and pms broken. 2008-04-30 02:55:13 +00:00
Yann Leboulanger 96a50f6c07 don't depend on python2.5 Fixes #3888 2008-04-27 18:11:34 +00:00
Brendan Taylor 051bd6e1b7 fixed e2ee traceback 2008-04-26 01:52:03 +00:00
Yann Leboulanger 07a8d9d948 category is mendatory 2008-04-24 13:44:09 +00:00
Yann Leboulanger f4f38e3738 type in identities is not mendatory 2008-04-22 23:52:04 +00:00
Jean-Marie Traissard a43e6d2cfa Oops, *I* made an error in last changeset 2008-04-22 18:48:41 +00:00
Jean-Marie Traissard ea3f446d8a [elghinn] Fix logic 2008-04-22 18:43:50 +00:00
Stephan Erb fb12c17fb9 In obvious cased, don't compare boolean values to True or False. 2008-04-21 20:52:35 +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
Yann Leboulanger f2f0c7aba0 use tuple instead of dict in __name: dict are not hashable 2008-04-21 14:44:19 +00:00
Yann Leboulanger dc48eeea96 fix static variable usage 2008-04-21 14:18:19 +00:00
Yann Leboulanger f593c5c2ac fix property definition 2008-04-21 14:16:20 +00:00
Yann Leboulanger 0527b7e0ea move __name to static attribute of CacheItem class 2008-04-21 13:16:41 +00:00
Yann Leboulanger 67bd94dd55 fix property code in caps.py 2008-04-21 12:57:34 +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
Jean-Marie Traissard 0ca9610680 [elghinn] Cleaner way to check if we have gpg 2008-04-20 18:40:59 +00:00
Jean-Marie Traissard 1846cfefc6 Remove global temp vars after use 2008-04-20 15:24:34 +00:00
Stephan Erb 4e6bd4ee8f Port roster_window to gtk.TreeModelFilter.
Contacts are now online hidden when they connect/reconnect and not completely removed/readded. Should come with a great speed improvement for people with big rosters.
There are still a few known problems but non that should dalay this patch any longer. Related bugs will be tracked with 'modelfilter' keyword.

See #1201
2008-04-20 14:01:04 +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
Yann Leboulanger fdf46e5430 one more typo 2008-04-16 19:52:47 +00:00
Yann Leboulanger 18c8500f9b really fix SQL query 2008-04-16 19:41:36 +00:00
Yann Leboulanger 4bfd971415 fix sql query 2008-04-16 19:22:16 +00:00
Yann Leboulanger 158231493a remove useless print 2008-04-16 14:52:43 +00:00
Jean-Marie Traissard df257baef5 Added helpers to commit in logger.py
Trying to ignore line for #3865
2008-04-16 13:46:44 +00:00
Yann Leboulanger 3aefee4700 try all IPs of a given host in case first one fails. Fixes #2958 2008-04-16 11:02:01 +00:00
Yann Leboulanger 0568a4b32b typo 2008-04-15 15:59:13 +00:00
Yann Leboulanger 1a2f60186a Don't fail on windows if bonjour is not installed. fixes #3861
socket module doesn't have AI_ADDRCONFIG attribute under windows
2008-04-15 15:58:07 +00:00
Yann Leboulanger 5348c3a37f add ACE option to configure interval between 2 idlness checks. default to 2 seconds. fixes #3004 2008-04-15 09:35:36 +00:00
Brendan Taylor 76808901eb check tic-tac-toe win conditions, slimmed down _messageCB some more 2008-04-15 05:32:45 +00:00
Jean-Marie Traissard 2c4e901b8f Fix table creation typo.
Btw thanks elghinn for idea of this table :)
2008-04-15 02:05:08 +00:00
Jean-Marie Traissard 8f84ff29f5 fix indent 2008-04-15 01:54:31 +00:00
Jean-Marie Traissard f32901d243 Create a new small table in DB to remember rooms last_history_line at next
launch. This is necessary because with a big history get_last_date_that_has_logs
can take about 5 seconds on first launch.
Created new gajim subversion.
2008-04-15 01:52:11 +00:00
Yann Leboulanger 29dd9d2576 added ipython for SVN users only. 2008-04-14 15:19:09 +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
Stephan Erb 7e6431fcea Small fixes for activity dialog. 2008-04-07 11:44:35 +00:00
Stephan Erb 855a72855d Add get_uf_* functions to make mood and activity translatable. 2008-04-07 11:14:23 +00:00
Brendan Taylor d034078c03 rearranged _messageCB and split it into multiple methods 2008-04-06 22:21:46 +00:00
Yann Leboulanger da966efaa7 use getaddrinfo to know if we should use ipv4 or v6 for zeroconf 2008-04-06 21:33:40 +00:00
Yann Leboulanger 067d9dbf2b make zeroconf work correctly on both ipv4 and ipv6. Bind on an ipv6 socket if possible. 2008-04-06 16:51:31 +00:00
Stephan Erb b991b32886 Add missing tooltip and markup in vcard window. See #1069. Make string a doc string. 2008-04-04 15:10:50 +00:00
Stephan Erb e95a9fa5ef Fix indentation. 2008-04-04 09:51:49 +00:00
Yann Leboulanger f3665cd689 don't remove metacontact when we reconnect. fixes #3771 2008-04-01 23:13:10 +00:00
Jean-Marie Traissard 75983ff571 Some "jep" -> "xep" 2008-03-30 20:35:02 +00:00
Yann Leboulanger a6e06b3bca add autoconnect_as feature to autoconnect as away or invisible 2008-03-30 11:50:59 +00:00
Yann Leboulanger 849a235263 [Nico Gulden] typo in some strings 2008-03-24 21:59:39 +00:00
Jean-Marie Traissard 11e4945158 Use appropriate function to remove a line in unread_message table. See #3793. 2008-03-24 00:45:53 +00:00
Yann Leboulanger 4e15d0f0d6 remove lines from unread_messages if messages are no more in logs table. Fixes #3793 2008-03-23 22:52:29 +00:00
Yann Leboulanger 45211c43f5 coding standards 2008-03-21 17:17:12 +00:00
Yann Leboulanger 92690da36b fix zeroconf to be ablt to use IPv6. Fixes #3683 2008-03-21 16:55:39 +00:00
Jean-Marie Traissard 88db86bb99 Make jid_is_from_pm works with not-full jid 2008-03-19 23:14:58 +00:00
Jean-Marie Traissard 624a16034e Fix small TBs about last changeset that could happen if some history were manually removed. 2008-03-19 22:01:21 +00:00
Jean-Marie Traissard f9ca40ff1b - Change the way roster.fire_up_unread_messages_events()/logger.get_unread_msgs() work, so it's
faster
- Stop adding pm chat messages received to unread messages. This is in addition to [8311], but
works also when chat win is already opened now.
- Automatically remove unread_message lines for messages older than a month, so we will clear this
table for everybody, and keep it quite clear. Specially because messages can still be blocked here
if it's from someone not in the roster and we don't open it during the session. This can be long
at first connection with this version, because we delete a lot of lines (nearly one per PMs you
received since a long time). Could also be a very little longer during one month.
2008-03-19 21:43:01 +00:00
Jean-Marie Traissard d32e1ae0ed Fix another place where database could be malformed, using Asterix work in [9390]. Fixes #3342. 2008-03-17 19:30:38 +00:00
Yann Leboulanger 0d427eff3b Warn user when database is corrupted and unreadable. Fixes #3761 2008-03-17 07:22:43 +00:00
Yann Leboulanger 323c50ec44 coding standards 2008-03-13 09:07:58 +00:00
Yann Leboulanger cc1c4457c3 don't lower jids in DB. They are already stringprep'ed. Fixes #3766 2008-03-13 09:04:43 +00:00
Yann Leboulanger 1fd13ae4fa fix call to Popen() 2008-03-10 22:11:43 +00:00
Yann Leboulanger 7f639f145d Use subprocess instead of Popen2. fixes #3369 2008-03-10 13:27:31 +00:00
Yann Leboulanger 95bf9c4f74 send xml:lang in groupchat presences and configuration request. fixes #3743 2008-03-03 23:00:01 +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 1b90552446 ability to remove a PEP node 2008-03-02 23:56:39 +00:00
Yann Leboulanger c8b25f37a5 [shtrom] $S and $T in autoaway status message. fixes $3741 2008-02-25 14:09:47 +00:00
Yann Leboulanger 19e594f919 [Merwok] use os.pathsep to know the PATH environment separator 2008-02-17 16:01:44 +00:00
Yann Leboulanger 13541c0425 ability to configure pubsub nodes. see #3053 2008-02-15 22:55:21 +00:00
Yann Leboulanger 494ae444b6 ability to ignore SSL errors until certificate changes. Fixes #3710 2008-02-15 10:11:17 +00:00