Commit graph

26 commits

Author SHA1 Message Date
mathieui
71b6404b04 Adopt the mcabber log format (Fix #2311) 2013-06-09 03:47:16 +02:00
mathieui
9eaffe1369 Fix the os.makedirs calls so that they don’t traceback for nothing 2013-06-09 03:45:10 +02:00
mathieui
e5f219d43e Do not attempt to log things when use_log = false 2013-04-06 11:45:34 +02:00
mathieui
91b960b797 Handle I/O errors better
- Do not crash because of low disk space
- Notify the user whenever it happens
- A few functions now return a boolean instead of nothing
- Config.silent_set is Config.set_and_save without toggle and returning
  strings. It is used whenever we don’t need set_and_save
- Config.set_and_save now returns a tuple (that can be passed directly
  to core.information())

TODO: display the precise error to the user (instead of “unable to…”)
2013-04-05 23:57:53 +02:00
mathieui
e8fae6f24c Fix #2275, ref #2229
- Refactor the message handlers to be more readable
- Add a group_corrections tab-specific option (#2229)
- Fix issues with /correct in private tabs and conversation tabs
2013-03-31 16:33:10 +02:00
mathieui
cb900858a0 Fix the per-tab options on logs 2012-12-16 13:42:22 +01:00
mathieui
344e8c8d6c fix a traceback when we accidentally seek() in the middle of a char 2012-12-15 23:34:28 +01:00
mathieui
423bae05b0 Really make the use_log a tab-specific option.
and do not read the whole log file for the last lines.
2012-12-15 23:23:12 +01:00
mathieui
08ca9bd5c5 Sort the configurations options by name in the documentation
(instead of chaos)
2012-12-15 22:57:57 +01:00
mathieui
9f7a16141a Fix #2172 (select which rooms are logged) 2012-12-15 20:29:37 +01:00
mathieui
6781f67e80 Preload history into discussion windows (à la mcabber)
- New option load_log defaulting to 200 to indicate the number of lines
  to be loaded
- It’s still very raw, and the format of the message does not match the
  format of the normal room history, for example
- Works in the Private chat, MUC, and Conversation tabs

Thanks to labedz <github@labedz.org> for the original code
2012-11-11 16:01:53 +01:00
mathieui
941acdb612 Fixes #2350 (reloading static resources on SIGHUP) 2012-04-02 18:30:06 +02:00
mathieui
75f7d71080 Use os.path.expanduser to interpret '~' for _dir config options 2011-11-16 09:46:09 +01:00
mathieui
c3c67b5e0a Code cleanup (unused import, variables, undefined names, etc…) 2011-11-06 21:10:09 +01:00
Florent Le Coz
96794a4e49 Change license to zlib (MIT sucks :() 2011-09-11 17:10:05 +02:00
Florent Le Coz
d41634d4ea Change license to MIT 2011-09-06 02:45:53 +02:00
mathieui
afab9e050f Fixes bug #2183 2011-06-18 18:31:57 +02:00
mathieui
1c9fc655dd Fixes #2174 2011-05-27 23:36:52 +02:00
Florent Le Coz
cc74576c9f Avoid crash when write to log file fails 2011-02-21 21:00:23 +01:00
Florent Le Coz
ce1fc18e10 Log messages from normal and private conversations as well 2011-01-12 18:34:04 +01:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
ab85a3dc21 fix the log of MUC messages in files 2011-01-02 16:58:40 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d712d2e1c9 update copyright date 2011-01-01 13:27:07 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
f4d4a205f1 a few renamings, and some other stuff 2010-11-15 11:59:09 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
d4e3e51c1f update e-mail address and README 2010-10-04 01:45:16 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
17eb99eea7 python 3 only. Fixes all EncodingError bugs :)))) 2010-09-03 18:01:43 +00:00
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
e84b23d1ad Switch to Sleekxmpp. fixed #1768 2010-08-31 23:11:02 +00:00
Renamed from src/logging.py (Browse further)