parse users differently

This commit is contained in:
biglyderv 2025-03-30 02:43:52 -04:00
parent 5b9254211f
commit d356b5423e
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
2 changed files with 3 additions and 3 deletions

View file

@ -77,9 +77,9 @@ int inv_handler(const void *key, size_t size, uintptr_t val, void *usr) {
}
if (val2[strlen(val2) - 1] == '\n') {
printf("- %s suggested %s", key3, val2);
printf("- user:%s suggested %s", key3, val2);
} else {
printf("- %s suggested %s\n", key3, val2);
printf("- user:%s suggested %s\n", key3, val2);
}
free(key3);

View file

@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
init_tables(elements, inv, polls, 1);
printf("%s, welcome to Elemental on Command Line!\nType /help for commands.\n", name);
printf("user:%s, welcome to Elemental on Command Line!\nType /help for commands.\n", name);
int newline = 1;
while (1) {
// todo: separate into functions