Ignore incoming error messages
authorMikael Berthe <mikael@lilotux.net>
Sun, 16 May 2010 13:43:31 +0200
changeset 41 5c0a2db896f5
parent 40 95ba0699f365
child 42 99477d3c2dda
Ignore incoming error messages
mcabbot.lua
--- a/mcabbot.lua	Sat Apr 24 13:47:42 2010 +0200
+++ b/mcabbot.lua	Sun May 16 13:43:31 2010 +0200
@@ -29,6 +29,9 @@
     local perso = false
     local muc = false
     local message = h.message
+
+    if h.error and h.error == "true" then return end
+
     if h.groupchat and h.groupchat == "true" then
         muc = true
     end