From a28fdf02ef9af875606aedd528699a5de955b043 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 2 May 2007 12:23:48 +0000 Subject: [PATCH] Set user mode correctly to local entry in OPER/SILCOPER reply. --- CHANGES | 6 ++++++ TODO | 4 ++-- lib/silcclient/command_reply.c | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 93de8a54..964fd286 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Wed May 2 11:38:17 EEST 2007 Pekka Riikonen + + * 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 * Ported SILC Socket Stream API, SILC Net API, SILC Schedule API, diff --git a/TODO b/TODO index f4c77081..ea67ceec 100644 --- 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**** diff --git a/lib/silcclient/command_reply.c b/lib/silcclient/command_reply.c index a4b99592..dd68d9ce 100644 --- a/lib/silcclient/command_reply.c +++ b/lib/silcclient/command_reply.c @@ -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); -- 2.24.0