X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcd%2Fcommand.c;h=93e94e80bca35c2c41f56685ad9820e0ba9c95c6;hb=8b353496b56f4765ac810ac5400865e815ab4517;hp=5ed21f8354e710fcb041c29839ede868490f59c5;hpb=dbd4f282d28d8bdf3cbd3419ba16d4774b6b4349;p=silc.git diff --git a/apps/silcd/command.c b/apps/silcd/command.c index 5ed21f83..93e94e80 100644 --- a/apps/silcd/command.c +++ b/apps/silcd/command.c @@ -4815,6 +4815,11 @@ SILC_SERVER_CMD_FUNC(kick) idp->data, idp->len); silc_buffer_free(idp); + /* Send KICKED notify to primary route */ + silc_server_send_notify_kicked(server, SILC_PRIMARY_ROUTE(server), + SILC_BROADCAST(server), channel, + target_client->id, client->id, comment); + /* Remove the client from the channel. If the channel does not exist after removing the client then the client kicked itself off the channel and we don't have to send anything after that. */ @@ -4822,11 +4827,6 @@ SILC_SERVER_CMD_FUNC(kick) target_client, FALSE)) goto out; - /* Send KICKED notify to primary route */ - silc_server_send_notify_kicked(server, SILC_PRIMARY_ROUTE(server), - SILC_BROADCAST(server), channel, - target_client->id, client->id, comment); - if (!(channel->mode & SILC_CHANNEL_MODE_PRIVKEY)) { /* Re-generate channel key */ if (!silc_server_create_channel_key(server, channel, 0))