Added command history groups, set them with /WINDOW HISTORY. Patch by peder@ifi.uio.no

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2276 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-20 13:29:20 +00:00 committed by cras
commit 9ddebe6bcf
13 changed files with 243 additions and 78 deletions

View file

@ -195,6 +195,21 @@ void window_set_name(WINDOW_REC *window, const char *name)
signal_emit("window name changed", 1, window);
}
void window_set_history(WINDOW_REC *window, const char *name)
{
char *oldname;
oldname = window->history_name;
if (*name == '\0')
window->history_name = NULL;
else
window->history_name = g_strdup(name);
signal_emit("window history changed", 1, window, oldname);
g_free_not_null(oldname);
}
void window_set_level(WINDOW_REC *window, int level)
{
g_return_if_fail(window != NULL);