mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Lots of changes again. Biggest ones:
- window's text buffer should work better - themes are almost working, you can change the text formats with /format - automatically try to rejoin the channel after 5 minutes if the join there failed because it was "temporarily unavailable" (netsplits) - generally cleaning code.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@216 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
969cfe8abc
commit
cbdaf7d06d
63 changed files with 2471 additions and 1912 deletions
|
|
@ -297,25 +297,27 @@ static void autolog_log(void *server, const char *target)
|
|||
g_free(fname);
|
||||
}
|
||||
|
||||
/* write to logs created with /WINDOW LOG */
|
||||
static void sig_printtext_stripped(void *server, const char *target, gpointer levelp, const char *text)
|
||||
static void sig_printtext_stripped(WINDOW_REC *window, void *server, const char *target, gpointer levelp, const char *text)
|
||||
{
|
||||
char windownum[MAX_INT_STRLEN];
|
||||
WINDOW_REC *window;
|
||||
LOG_REC *log;
|
||||
int level;
|
||||
|
||||
level = GPOINTER_TO_INT(levelp);
|
||||
if (level == MSGLEVEL_NEVER) return;
|
||||
|
||||
/* let autolog create the log records */
|
||||
if ((autolog_level & level) && target != NULL && *target != '\0')
|
||||
autolog_log(server, target);
|
||||
|
||||
window = window_find_closest(server, target, level);
|
||||
if (window != NULL) {
|
||||
ltoa(windownum, window->refnum);
|
||||
/* save to log created with /WINDOW LOG */
|
||||
ltoa(windownum, window->refnum);
|
||||
log = log_find_item(windownum);
|
||||
if (log != NULL) log_write_rec(log, text);
|
||||
|
||||
log = log_find_item(windownum);
|
||||
if (log != NULL) log_write_rec(log, text);
|
||||
}
|
||||
/* save line to logs */
|
||||
if (logs != NULL)
|
||||
log_write(target, level, text);
|
||||
}
|
||||
|
||||
static int sig_autoremove(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue