diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-21 15:13:05 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-21 15:13:05 +0000 |
commit | acffe7b322d15fb063366a4242753064a7612f32 (patch) | |
tree | d24b98b25ed92fc3124a6aaab57309a28573b41f /src/fe-common/core | |
parent | 361e79b0d680f82987b2d479524b2ed1a9411a9a (diff) | |
download | irssi-acffe7b322d15fb063366a4242753064a7612f32.zip |
/LOG OPEN -window accepts now -targets too to specify the refnum
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2279 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core')
-rw-r--r-- | src/fe-common/core/fe-log.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c index 477307f4..99c82ca1 100644 --- a/src/fe-common/core/fe-log.c +++ b/src/fe-common/core/fe-log.c @@ -96,8 +96,12 @@ static void cmd_log_open(const char *data) if (g_hash_table_lookup(optlist, "window")) { /* log by window ref# */ - ltoa(window, active_win->refnum); - log_item_add(log, LOG_ITEM_WINDOW_REFNUM, window, + targetarg = g_hash_table_lookup(optlist, "targets"); + if (targetarg == NULL || !is_numeric(targetarg, '\0')) { + ltoa(window, active_win->refnum); + targetarg = window; + } + log_item_add(log, LOG_ITEM_WINDOW_REFNUM, targetarg, servertag); } else { targetarg = g_hash_table_lookup(optlist, "targets"); |