<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>

<muclient>
<plugin
   name="roomname"
   author="Soludra"
   id="e94f6bd8509a2b00d10cb226"
   language="Lua"
   purpose="Adds a Nexus room name to the status bar"
   date_written="2008-08-23"
   requires="4.35"
   version="1.0"
   >
</plugin>

-- Add this to every plugin that uses ATCP.
-- It enables access to helpful utility functions.
-- (be sure to download it first)
<include name="atcp_lua.xml" />

<script><![CDATA[

-- This function is automatically called when a plugin
-- broadcasts a message
OnPluginBroadcast = function (msg, id, name, text)

  -- Check if this broadcast is from ATCP
  if (id == idATCP) then
    if (msg == 0) then
      -- Enable modules here
      EnableModuleATCP("room_brief")
    else
      -- Unpack the ATCP message into its
      -- message (i.e. "Room.Brief") and its
      -- content (i.e. "Approaching Shallam")
      msg, text = UnpackATCP(text)

      -- Check to make sure this message is the
      -- one you want
      if (msg == "Room.Brief") then
        -- For this plugin, we set the status
        -- bar of MUSHclient to the room name.
        SetStatus(text .. ".")
      end -- if
    end -- if
  end -- if
end -- func

]]></script>

</muclient>