parse users differently
This commit is contained in:
parent
5b9254211f
commit
d356b5423e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue