summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-12-04 12:13:14 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-12-04 12:13:14 +0100
commit85b9c2f370dfd5fc361f34b5984959b522ed108f (patch)
tree1ff485100d4e8363f0d6b45b1a8f169f183154b1 /svdrp.c
parentbcce056292726b393a594bf8e60da28392b545a9 (diff)
downloadvdr-85b9c2f370dfd5fc361f34b5984959b522ed108f.tar.gz
vdr-85b9c2f370dfd5fc361f34b5984959b522ed108f.tar.bz2
The SVDRP command HITK now discards any keys if the remote control is currently turned off
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/svdrp.c b/svdrp.c
index ec1497a1..0313280b 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 2.20 2012/12/03 13:49:28 kls Exp $
+ * $Id: svdrp.c 2.21 2012/12/04 12:08:36 kls Exp $
*/
#include "svdrp.h"
@@ -917,6 +917,10 @@ void cSVDRP::CmdHELP(const char *Option)
void cSVDRP::CmdHITK(const char *Option)
{
if (*Option) {
+ if (!cRemote::Enabled()) {
+ Reply(550, "Remote control currently disabled (key \"%s\" discarded)", Option);
+ return;
+ }
char buf[strlen(Option) + 1];
strcpy(buf, Option);
const char *delim = " \t";