cons_show now uses vargs

This commit is contained in:
James Booth
2012-10-03 22:06:04 +01:00
parent a1476f1780
commit 6aa1fe5513
3 changed files with 16 additions and 3 deletions

View File

@@ -753,6 +753,13 @@ _cmd_set_remind(const char * const inp, struct cmd_help_t help)
gint period = atoi(period_str);
prefs_set_remind(period);
if (period == 0) {
cons_show("Message reminders disabled.");
} else if (period == 1) {
cons_show("Message reminder period set to 1 second.");
} else {
cons_show("Message reminder period set to %d seconds.", period);
}
}
return TRUE;