Alias /n to /view n where n is a number
Tento commit je obsažen v:
rodič
6ec3c3011e
revize
e29f67dde5
7
input.c
7
input.c
@ -178,8 +178,15 @@ void input(struct Tag tag, char *input) {
|
||||
COMMANDS[i].handler(tag, input);
|
||||
return;
|
||||
}
|
||||
|
||||
char *trail;
|
||||
strtol(&command[1], &trail, 0);
|
||||
if (!trail[0]) {
|
||||
inputView(tag, &command[1]);
|
||||
} else {
|
||||
uiFmt(TAG_STATUS, UI_WARM, "%s isn't a recognized command", command);
|
||||
}
|
||||
}
|
||||
|
||||
void inputTab(void) {
|
||||
for (size_t i = 0; i < COMMANDS_LEN; ++i) {
|
||||
|
Načítá se…
x
Odkázat v novém úkolu
Zablokovat Uživatele