From e9e479141d4a4047964196285377133c0fdaf3b8 Mon Sep 17 00:00:00 2001 From: Christophe Simon Date: Fri, 7 Feb 2014 10:51:40 +0100 Subject: [PATCH] Fixed IM messages processing --- rc/im.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/im.lua b/rc/im.lua index 9e91440..d99cca1 100644 --- a/rc/im.lua +++ b/rc/im.lua @@ -48,9 +48,9 @@ function mcabber_event_hook(kind, arg, jid, msg) icon = "person" if string.match(jid, "nagios@dailymotion.com") then - if string.match(txt, "^PROBLEM:") then + if string.match(txt, "^PROBLEM:?") then icon = "problem" - txt = string.gsub(txt, "^PROBLEM: ", "") + txt = string.gsub(txt, "^PROBLEM:? ", "") elseif string.match(txt, "^RECOVERY:") then icon = "recovery" txt = string.gsub(txt, "^RECOVERY: ", "")