Added current_win_is_console to plugins api

This commit is contained in:
James Booth
2016-02-28 23:06:45 +00:00
parent c562702ab9
commit ab08d0a378
5 changed files with 22 additions and 0 deletions

View File

@@ -197,6 +197,17 @@ api_get_current_muc(void)
}
}
int
api_current_win_is_console(void)
{
ProfWin *current = wins_get_current();
if (current && current->type == WIN_CONSOLE) {
return 1;
} else {
return 0;
}
}
void
api_log_debug(const char *message)
{