/*
    This source code is protected under the GNU General Public License (GPL),
    found at http://www.gnu.org/licenses/gpl.html
*/

#include "s-pluginapi.h"

#define pL 0x0860 // Packet Size Limit // Janus

  AnyType initializeServerPlugin(PluginID pluginID, int argc, char *argv[])
{
    FormattedLogMessage(NULL, "Standard Props", "v1.0 (2004-2005) by Paul Taylor (Janus) <janus@thepalacehost.com>");
    return (AnyType) pluginID;
}

  ClientMsg * handleMessage(ServerState *state, AnyType pluginDat, ClientMsg *msg)
{
    if (msg->eventType == MSG_ASSETREGI && msg->length > pL)
    {
        ServerUserRec *user = state->currentUser;
        UserMessage(user, "This server has prop (size) restrictions!");
        ChangeUserProp(user, 0, 0);
        return NULL;
    }
    return msg;
}

  /*
      I would like to thank my crew, past and present from MPP/PEG,
      Aephix, Aephix Core, Gemini Project, and now ThePalaceHost!
      Specifically Darryl, Richard, Patrick, and Scott. You guys
      are the best and you've always been there in spirit.

      I didn't make the initial plugin SDK so I'm not going to open
      source that, but if you can find a copy, I wish you the best
      of luck, might have to switch the linker to -shared instead
      of -Xlinker.

      Aight! PEACE! // Janus

      PS To Joe (owner of PalaceBox), unlike you, I enjoy sharing knowledge.
  */
