mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Some logging fixes. Flood checking had a memory leak. Query had a small
memory leak. Text buffer fixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@226 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
a0aa649368
commit
ae25925a1f
10 changed files with 129 additions and 89 deletions
|
|
@ -40,20 +40,15 @@ static void event_away(const char *data, IRC_SERVER_REC *server)
|
|||
if (level == 0) return;
|
||||
|
||||
log = log_find(fname);
|
||||
if (log != NULL) {
|
||||
/* awaylog already created */
|
||||
if (log->handle == -1) {
|
||||
/* ..but not open, open it. */
|
||||
log_start_logging(log);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
log = log_create_rec(fname, level, NULL);
|
||||
if (log != NULL) {
|
||||
if (log == NULL) {
|
||||
log = log_create_rec(fname, level, NULL);
|
||||
log->temp = TRUE;
|
||||
log_update(log);
|
||||
log_start_logging(log);
|
||||
}
|
||||
|
||||
if (!log_start_logging(log)) {
|
||||
/* creating log file failed? close it. */
|
||||
log_close(log);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue