Added /inpblock command

This commit is contained in:
James Booth
2014-12-21 18:15:29 +00:00
parent 79d4cbe967
commit 13f73a30e7
8 changed files with 55 additions and 1 deletions

View File

@@ -3395,6 +3395,19 @@ cmd_notify(gchar **args, struct cmd_help_t help)
return TRUE;
}
gboolean
cmd_inpblock(gchar **args, struct cmd_help_t help)
{
char *value = args[0];
int intval;
if (_strtoi(value, &intval, 1, 1000) == 0) {
cons_show("Input blocking set to %d milliseconds.", intval);
prefs_set_inpblock(intval);
ui_input_nonblocking();
}
return TRUE;
}
gboolean
cmd_log(gchar **args, struct cmd_help_t help)
{