summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-08-03 20:50:34 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-08-03 20:50:34 +0000
commitdaaf2756cafcb81e11e4246005b01e2d39b1caeb (patch)
tree54ba135f2eb1a1d6a1f7a0aa8811b7ccd3e4a67a /src
parent79ae6fceb33de787ff65527cdab636af276ccb95 (diff)
downloadirssi-daaf2756cafcb81e11e4246005b01e2d39b1caeb.zip
Minor cleanup.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1700 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/window-commands.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/fe-common/core/window-commands.c b/src/fe-common/core/window-commands.c
index 8648087b..9cf917fb 100644
--- a/src/fe-common/core/window-commands.c
+++ b/src/fe-common/core/window-commands.c
@@ -72,13 +72,10 @@ static void window_print_items(WINDOW_REC *win)
TXT_WINDOW_INFO_ITEMS_FOOTER);
}
-static void cmd_window_info(void)
+static void cmd_window_info(WINDOW_REC *win)
{
- WINDOW_REC *win;
char *levelstr;
- win = active_win;
-
printformat_window(win, MSGLEVEL_CLIENTCRAP,
TXT_WINDOW_INFO_HEADER);
@@ -148,7 +145,7 @@ static void cmd_window(const char *data, void *server, WI_ITEM_REC *item)
while (*data == ' ') data++;
if (*data == '\0')
- cmd_window_info();
+ cmd_window_info(active_win);
else if (is_numeric(data, 0))
signal_emit("command window refnum", 3, data, server, item);
else