forked from PsychoticNinja/irssi
/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
@ -5,7 +5,8 @@
|
|||||||
-autoopen: Automatically open this log file at startup
|
-autoopen: Automatically open this log file at startup
|
||||||
-<server tag>: Targets are logged only in this server
|
-<server tag>: Targets are logged only in this server
|
||||||
-targets: Log only in specified channels/nicks (space separated list)
|
-targets: Log only in specified channels/nicks (space separated list)
|
||||||
-window: Log the active window
|
-window: Log output in the window. Active window is used by default, or
|
||||||
|
you can give the window's refnum in -targets.
|
||||||
<filename>: File name where to log, it is parsed with
|
<filename>: File name where to log, it is parsed with
|
||||||
strftime(), so %%d=day, etc. see "man strftime" for
|
strftime(), so %%d=day, etc. see "man strftime" for
|
||||||
more info.
|
more info.
|
||||||
|
@ -96,8 +96,12 @@ static void cmd_log_open(const char *data)
|
|||||||
|
|
||||||
if (g_hash_table_lookup(optlist, "window")) {
|
if (g_hash_table_lookup(optlist, "window")) {
|
||||||
/* log by window ref# */
|
/* log by window ref# */
|
||||||
ltoa(window, active_win->refnum);
|
targetarg = g_hash_table_lookup(optlist, "targets");
|
||||||
log_item_add(log, LOG_ITEM_WINDOW_REFNUM, window,
|
if (targetarg == NULL || !is_numeric(targetarg, '\0')) {
|
||||||
|
ltoa(window, active_win->refnum);
|
||||||
|
targetarg = window;
|
||||||
|
}
|
||||||
|
log_item_add(log, LOG_ITEM_WINDOW_REFNUM, targetarg,
|
||||||
servertag);
|
servertag);
|
||||||
} else {
|
} else {
|
||||||
targetarg = g_hash_table_lookup(optlist, "targets");
|
targetarg = g_hash_table_lookup(optlist, "targets");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user