diff options
author | Timo Sirainen <cras@irssi.org> | 2004-08-19 23:34:00 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-08-19 23:34:00 +0000 |
commit | 924ac8f91f87d9034dedb711ec33fe714f91a860 (patch) | |
tree | b9f9666be1fdc8fee74c69adab39118622daabe0 /src/fe-common | |
parent | 334b07ac286e16e71299404a57211d7492621a9a (diff) | |
download | irssi-924ac8f91f87d9034dedb711ec33fe714f91a860.zip |
Patch by jimmy: Details In 0.8.9 it is not possible to log all activity on a given
server; you must confine the logging to a window or a set of targets. This
patch adds a default "*" target which matches everything on the server,
including NULL items associated with it:
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3282 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-log.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index 1b88364e..2d53c5fe 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -109,6 +109,8 @@ static void cmd_log_open(const char *data) targetarg = g_hash_table_lookup(optlist, "targets"); if (targetarg != NULL && *targetarg != '\0') log_add_targets(log, targetarg, servertag); + else if (servertag != NULL) + log_add_targets(log, "*", servertag); } if (g_hash_table_lookup(optlist, "autoopen")) @@ -189,17 +191,20 @@ static char *log_items_get_list(LOG_REC *log) GSList *tmp; GString *str; char *ret; + LOG_ITEM_REC *rec; g_return_val_if_fail(log != NULL, NULL); g_return_val_if_fail(log->items != NULL, NULL); str = g_string_new(NULL); for (tmp = log->items; tmp != NULL; tmp = tmp->next) { - LOG_ITEM_REC *rec = tmp->data; + rec = tmp->data; g_string_sprintfa(str, "%s, ", rec->name); } g_string_truncate(str, str->len-2); + if(rec->servertag != NULL) + g_string_sprintfa(str, " (%s)", rec->servertag); ret = str->str; g_string_free(str, FALSE); |