Lose unnecessary flags on context.

This commit is contained in:
Nicholas Marriott
2008-06-21 10:19:36 +00:00
parent e5ab9a2db5
commit 2bd92e5f18
8 changed files with 11 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-attach-session.c,v 1.19 2008-06-18 22:21:51 nicm Exp $ */
/* $Id: cmd-attach-session.c,v 1.20 2008-06-21 10:19:36 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -48,7 +48,7 @@ cmd_attach_session_exec(struct cmd *self, struct cmd_ctx *ctx)
struct session *s;
char *cause;
if (ctx->flags & CMD_KEY)
if (ctx->curclient != NULL)
return;
if ((s = cmd_find_session(ctx, data->target)) == NULL)