<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, December 17, 2004, 7:26 AM -->
<!-- MuClient version 3.60 -->

<!-- Plugin "MXP_statusbar" generated by Plugin Wizard -->

<muclient>
<plugin
   name="MXP_statusbar"
   author="Nick Gammon"
   id="9c5a40595c0ed0b7c97e833e"
   language="Lua"
   purpose="Status bar using MXP tags"
   date_written="2004-12-17 07:24:19"
   requires="3.60"
   version="1.0"
   >

</plugin>


<!--  Script  -->


<script>
<![CDATA[
function OnPluginMXPopenTag (line)

  i = string.find (line, ",")

  if not i then
    return
  end

  tag = string.sub (line, 1, i - 1)
 
  line = string.sub (line, i + 1)

  args = {}

  rex.new ("((?P<argument>[[:word:]]+)=)?'(?P<value>.*?)'")
          :gmatch (line, 
           function (m, t)  
           if not t.argument then
              t.argument = "item"
           end -- if
           args [t.argument] = t.value
          end)

--  table.foreach (args, print)

end -- function

function OnPluginMXPsetVariable (x)

print ("in function OnPluginMXPsetVariable, x = ", x)
end -- function OnPluginMXPsetVariable 
]]>
</script>


</muclient>
