From 0370a8f93033003033a37acdcaf259bd999b0ff9 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Mon, 27 Jun 2016 14:00:07 -0400 Subject: [PATCH] Update handling of errors and update mistyping of license in script --- pyshnotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyshnotify.py b/pyshnotify.py index b86c53e..f7d4862 100644 --- a/pyshnotify.py +++ b/pyshnotify.py @@ -4,7 +4,7 @@ import shlex, subprocess SCRIPT_NAME = "pyshnotify" SCRIPT_AUTHOR = "Tony Blyler " SCRIPT_VERSION = "1.0" -SCRIPT_LICENSE = "GPL3" +SCRIPT_LICENSE = "MPL2" SCRIPT_DESC = "Execute command from highlights and private messages" def on_msg(data, buffer, timestamp, tags, displayed, highlight, sender, message): @@ -20,7 +20,7 @@ def on_msg(data, buffer, timestamp, tags, displayed, highlight, sender, message) stdout, stderr = proc.communicate() if proc.returncode != 0: - w.prnt("", weechat.prefix("error") + " Unable to run command: '" + cmd + "' stdout: '" + stdout + "' stderr: '" + stderr + "'") + w.prnt("", w.prefix("error") + " Unable to run command: '" + cmd + "' stdout: '" + stdout + "' stderr: '" + stderr + "'") return w.WEECHAT_RC_ERROR return w.WEECHAT_RC_OK