diff options
Diffstat (limited to '')
-rw-r--r-- | server_network.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server_network.c b/server_network.c index c04bb22..062c9d5 100644 --- a/server_network.c +++ b/server_network.c @@ -375,6 +375,8 @@ int kill_handler(struct string sender, uint64_t argc, struct string *argv) { return 0; // TODO: Currently not all local users are considered; fix that, then make this give an error if (STRING_EQ(user->server, STRING("1HC"))) { + SEND(STRING("GLOADMODULE m_servprotect\n")); // required for the +k we're about to use + char user_time[21]; snprintf(user_time, 21, "%ld", user->user_ts); char nick_time[21]; @@ -776,7 +778,13 @@ int privmsg_handler(struct string sender, uint64_t argc, struct string *argv) { return cmd->func(sender, argv[1], argv[0], command_argc, command_argv, 0); } else { - // TODO: complain about remote access + SEND(STRING(":1HC000000 NOTICE ")); + if (argv[0].data[0] == '#') + SEND(argv[0]); + else + SEND(sender); + SEND(STRING(" :You are not authorized to execute this command.\n")); + WRITES(1, STRING("Not executing local-only command from a remote source!\n")); return 0; } |