diff options
Diffstat (limited to '')
-rw-r--r-- | client_network.c | 12 | ||||
-rw-r--r-- | commands.c | 2 | ||||
-rw-r--r-- | main.c | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/client_network.c b/client_network.c index 0050812..bad6d0d 100644 --- a/client_network.c +++ b/client_network.c @@ -165,13 +165,11 @@ int add_local_client(struct string uid, struct string nick_arg, struct string vh SEND(client_cert); SEND(STRING("\n")); } - if (!STRING_EQ(uid, STRING("1HC000000"))) { // Don't oper haxserv, because echo is unprivileged - SEND(STRING(":")); - SEND(uid); - SEND(STRING(" OPERTYPE ")); - SEND(opertype); - SEND(STRING("\n")); - } + SEND(STRING(":")); + SEND(uid); + SEND(STRING(" OPERTYPE ")); + SEND(opertype); + SEND(STRING("\n")); return 0; @@ -463,7 +463,7 @@ int echo_command(struct string sender, struct string original_message, struct st } static struct command_def echo_command_def = { .func = echo_command, - .privs = {0}, + .privs = STRING("NetAdmin"), .local_only = 0, .summary = STRING("Repeats a message back"), }; @@ -274,7 +274,7 @@ int main(void) { if (last_timeout) { break; } else { - SEND(STRING(":1HC PING 1HC 101\n")); // TODO: Fix this as well + SEND(STRING(":1HC PING 1HC 1HD\n")); // TODO: Fix this as well last_timeout = 1; } } |