first steps towards supporting the "bye" command
This commit is contained in:
1 parent
a3db7b4cb2
commit
0dde525a46
7 files changed
+33
-25
No files matched your search
@@ -43,7 +43,7 @@
|
||||
int
|
||||
output_func(Client *c, int argc, char **argv)
|
||||
{
|
||||
if (!c->ack)
|
||||
if (c->state != ACTIVE)
|
||||
return 1;
|
||||
|
||||
if (argc != 2) {
|
||||
@@ -110,7 +110,7 @@ sleep_func(Client *c, int argc, char **argv)
|
||||
#define MAX_SECS 60
|
||||
#define MIN_SECS 1
|
||||
|
||||
if (!c->ack)
|
||||
if (c->state != ACTIVE)
|
||||
return 1;
|
||||
|
||||
if (argc != 2) {
|
||||
@@ -170,7 +170,7 @@ sleep_func(Client *c, int argc, char **argv)
|
||||
int
|
||||
noop_func(Client *c, int argc, char **argv)
|
||||
{
|
||||
if (!c->ack)
|
||||
if (c->state != ACTIVE)
|
||||
return 1;
|
||||
|
||||
sock_send_string(c->sock, "noop complete\n");
|
||||
|
||||
Reference in new issue
Block a user