Mercurial > pidgin
diff src/util.c @ 3457:222e23f91092
[gaim-migrate @ 3505]
Deryni made it so we can all log chats and IMs seperately.
He had it retain your old option--it would log both if you had
it configured that way.
I made it so that if you had logging on it will log IMs--but you'll have to
turn on logging chats manually. So if you want to log chats, turn that on.
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Wed, 28 Aug 2002 05:55:48 +0000 |
| parents | 8fa61405af2b |
| children | 7a3f16a375a5 |
line wrap: on
line diff
--- a/src/util.c Wed Aug 28 02:38:19 2002 +0000 +++ b/src/util.c Wed Aug 28 05:55:48 2002 +0000 @@ -400,7 +400,7 @@ return fd; } -FILE *open_log_file(char *name) +FILE *open_log_file(char *name, int is_chat) { struct stat st; char realname[256]; @@ -408,7 +408,9 @@ FILE *fd; int flag = 0; - if (!(logging_options & OPT_LOG_ALL)) { + if (((is_chat == 2) && !(logging_options & OPT_LOG_INDIVIDUAL)) + || ((is_chat == 1) && !(logging_options & OPT_LOG_CHATS)) + || ((is_chat == 0) && !(logging_options & OPT_LOG_CONVOS))) { l = find_log_info(name); if (!l) @@ -453,7 +455,7 @@ int x; if (name) - return open_log_file(name); + return open_log_file(name, 2); else return open_gaim_log_file("system", &x); }
