X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.c;h=5d6b3cda0a86012b518213d379e88fd35f89a01b;hb=12ec02261299938cfccb8cf7c73b72d24bf7c24d;hp=93e94e80bca35c2c41f56685ad9820e0ba9c95c6;hpb=26bd0c04f3101b4b6d67fbb54713967c81bad5fc;p=silc.git diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 93e94e80..5d6b3cda 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -5010,6 +5010,11 @@ SILC_SERVER_CMD_FUNC(detach) SILC_SERVER_COMMAND_CHECK(SILC_COMMAND_DETACH, cmd, 0, 0); + /* Remove operator privileges, since the client may resume in some + other server which to it does not have operator privileges. */ + client->mode &= ~(SILC_UMODE_SERVER_OPERATOR | + SILC_UMODE_ROUTER_OPERATOR); + /* Send the user mode notify to notify that client is detached */ client->mode |= SILC_UMODE_DETACHED; client->data.status &= ~SILC_IDLIST_STATUS_RESUMED;