Code

README.rst: use double backticks
[ncmpc.git] / src / lirc.c
index ce8f92891345fc24d509cfa040637b6d01bb879e..965037bd23f94e8304b85278f4ecbce236b05001 100644 (file)
@@ -39,7 +39,7 @@ lirc_event(gcc_unused GIOChannel *source,
        if (lirc_nextcode(&code) == 0) {
                while (lirc_code2char(lc, code, &txt) == 0 && txt != NULL) {
                        cmd = get_key_command_from_name(txt);
-                       if (do_input_event(cmd) != 0)
+                       if (!do_input_event(cmd))
                                return FALSE;
                }
        }