summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-12-09 14:39:06 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-12-09 14:39:06 +0000
commit1b99b57e4fcb91809abef72bae968b59142b086a (patch)
tree13fd4280f09cccaa9ec8772c94ff276257fcec5f /src
parentb1b989cf8173eb959d9b4fdd92fa4c484a6df629 (diff)
downloadirssi-1b99b57e4fcb91809abef72bae968b59142b086a.zip
Add 'active' tag for active logs in /log output.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4664 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-log.c3
-rw-r--r--src/fe-common/core/module-formats.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c
index c99c04b5..92df39ed 100644
--- a/src/fe-common/core/fe-log.c
+++ b/src/fe-common/core/fe-log.c
@@ -227,7 +227,8 @@ static void cmd_log_list(void)
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, TXT_LOG_LIST,
index, rec->fname, items != NULL ? items : "",
- levelstr, rec->autoopen ? " -autoopen" : "");
+ levelstr, rec->autoopen ? " -autoopen" : "",
+ rec->handle != -1 ? " active" : "");
g_free_not_null(items);
g_free(levelstr);
diff --git a/src/fe-common/core/module-formats.c b/src/fe-common/core/module-formats.c
index 13dd6457..96e1f78b 100644
--- a/src/fe-common/core/module-formats.c
+++ b/src/fe-common/core/module-formats.c
@@ -180,7 +180,7 @@ FORMAT_REC fecommon_core_formats[] = {
{ "log_started", "Started logging to file {hilight $0}", 1, { 0 } },
{ "log_stopped", "Stopped logging to file {hilight $0}", 1, { 0 } },
{ "log_list_header", "%#Logs:", 0 },
- { "log_list", "%#$0 $1: $2 $3$4", 5, { 1, 0, 0, 0, 0, 0 } },
+ { "log_list", "%#$0 $1: $2 $3$4$5", 6, { 1, 0, 0, 0, 0, 0 } },
{ "log_list_footer", "", 0 },
{ "windowlog_file", "Window LOGFILE set to $0", 1, { 0 } },
{ "windowlog_file_logging", "Can't change window's logfile while log is on", 0 },