Set user mode correctly to local entry in OPER/SILCOPER reply.
authorPekka Riikonen <priikone@silcnet.org>
Wed, 2 May 2007 12:23:48 +0000 (12:23 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 2 May 2007 12:23:48 +0000 (12:23 +0000)
CHANGES
TODO
lib/silcclient/command_reply.c

diff --git a/CHANGES b/CHANGES
index 93de8a54598ec54353b580e9c8eac3d36ee93d25..964fd2862a4d416deec99cc444e9f394220990e6 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+Wed May  2 11:38:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
+
+       * Set the server and router operator modes to local entry after
+         successful OPER or SILCOPER commands.  Affected file is
+         lib/silcclient/command_reply.c.
+
 Tue May  1 14:17:06 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
 
        * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API,
diff --git a/TODO b/TODO
index f4c77081736bd47402aa6aa047255ca496cb9d47..ea67ceecfe3c2e0a09e9014c4bc6b9d056891f82 100644 (file)
--- a/TODO
+++ b/TODO
@@ -15,7 +15,7 @@ apps/silcd, The SILC Server   ****PARTLY DONE****
 
  o Fix/test MOTD.
 
- o Remove protocol.[ch].  ***DONE
+ o Remove protocol.[ch].  (***DONE)
 
  o Rewrite connecting accepting. (***TESTING NEEDED)
 
@@ -32,7 +32,7 @@ apps/silcd, The SILC Server   ****PARTLY DONE****
  o Check all packet receive routines that they call silc_packet_free.
 
  o Add Web statistics module using lib/silchttp.  Give out server
-   statistics.
+   statistics. (***DONE)
 
 
 SILC Client    ****PARTLY DONE****
index a4b9959202498134165c77fd56dcea423bd5e325..dd68d9ced409c98d23b3a67a913ea0b13d559237 100644 (file)
@@ -1623,6 +1623,9 @@ SILC_FSM_STATE(silc_client_command_reply_silcoper)
   CHECK_STATUS("Cannot change mode: ");
   CHECK_ARGS(1, 1);
 
+  /* Set user mode */
+  cmd->conn->local_entry->mode |= SILC_UMODE_ROUTER_OPERATOR;
+
   /* Notify application */
   silc_client_command_callback(cmd);
 
@@ -1642,6 +1645,9 @@ SILC_FSM_STATE(silc_client_command_reply_oper)
   CHECK_STATUS("Cannot change mode: ");
   CHECK_ARGS(1, 1);
 
+  /* Set user mode */
+  cmd->conn->local_entry->mode |= SILC_UMODE_SERVER_OPERATOR;
+
   /* Notify application */
   silc_client_command_callback(cmd);