Patch: Allowing server ops to use the KILL command

Jeremy Mayeres <[email protected]>
Newsgroups gmane.network.silc.devel
Message-ID <[email protected]>
This patch is to allow server ops to use the kill command. I use this 
for single-server use (no routers). I commented out the check for router 
and changed from checking for ROUTER_OPERATOR to SERVER_OPERATOR

Enjoy!

_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/
command.diff (text/plain, 914 B)
--- apps/silcd/command_original.c	2006-07-23 18:21:10.000000000 -0400
+++ apps/silcd/command.c	2006-07-23 18:03:38.000000000 -0400
@@ -1434,14 +1434,18 @@ SILC_SERVER_CMD_FUNC(kill)
     /* Router operator killing */
 
     /* KILL command works only on router */
+    /* Patch: !!!FOR SINGLE SERVERS ONLY!!! Allows serverops to use this command
+     * 
     if (server->server_type != SILC_ROUTER) {
       silc_server_command_send_status_reply(cmd, SILC_COMMAND_KILL,
 					    SILC_STATUS_ERR_NO_ROUTER_PRIV, 0);
       goto out;
     }
-
+     */
     /* Check whether client has the permissions. */
-    if (!(client->mode & SILC_UMODE_ROUTER_OPERATOR)) {
+    /* Patch: !!!FOR SINGLE SERVER ONLY!!! See above
+     */
+    if (!(client->mode & SILC_UMODE_SERVER_OPERATOR)) {
       silc_server_command_send_status_reply(cmd, SILC_COMMAND_KILL,
 					    SILC_STATUS_ERR_NO_ROUTER_PRIV, 0);
       goto out;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.