telnet: simplify previous change by moving the notkbd check into consctlcmd()

This commit is contained in:
cinap_lenrek 2013-12-05 22:43:44 +01:00
parent 5c000bbe63
commit f6887b0a3c

View file

@ -314,7 +314,7 @@ fromnet(int net)
void
consctlcmd(char *s)
{
if(srv != nil)
if(srv != nil || notkbd)
return;
if(debug)
fprint(2, "consctl: %s\n", s);
@ -333,8 +333,6 @@ consctlcmd(char *s)
void
rawon(void)
{
if(notkbd)
return;
consctlcmd("rawon");
}
@ -344,8 +342,6 @@ rawon(void)
void
rawoff(void)
{
if(notkbd)
return;
consctlcmd("rawoff");
}