mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
/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
This commit is contained in:
parent
361e79b0d6
commit
acffe7b322
2 changed files with 8 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue