Added command stack wrappers and fixed up nread and removed dead code from nserver
Removed direct access from token.c
This commit is contained in:
4
token.c
4
token.c
@ -94,11 +94,11 @@ int TokenWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
/* we can do it */
|
||||
iToken = 1;
|
||||
TaskSignal(pServ->pTasker, TOKENGRAB, NULL);
|
||||
pCon->iGrab = 0; /* to enable us to do commands */
|
||||
SCSetGrab(pCon,0); /* to enable us to do commands */
|
||||
SCSendOK(pCon);
|
||||
return 1;
|
||||
} else if (strcmp(argv[1], "release") == 0) {
|
||||
if (pCon->iGrab != 0) {
|
||||
if (SCGetGrab(pCon) != 0) {
|
||||
SCWrite(pCon,
|
||||
"ERROR: you cannot release somebody elses control token!",
|
||||
eError);
|
||||
|
Reference in New Issue
Block a user