text: /*
  				Copyright <SWGEmu>
  		See file COPYING for copying conditions.*/
  
  #ifndef CHATONGETIGNORELIST_H_
  #define CHATONGETIGNORELIST_H_
  
  #include "engine/service/proto/BaseMessage.h"
  #include "server/zone/objects/player/PlayerObject.h"
  
  class ChatOnGetIgnoreList : public BaseMessage {
  public:
  	ChatOnGetIgnoreList(PlayerObject* ghost) : BaseMessage() {
  		insertShort(0x03);
  		insertInt(0xF8C275B0); // CRC
  
  		insertLong(ghost->getParentID());
  
  		DeltaVector<String>* ignoreList = ghost->getIgnoreList();
  		insertInt(ignoreList->size());
  
  		for (int i = 0; i < ignoreList->size(); ++i) {
  			insertAscii("SWG");
  			insertAscii(ghost->getZoneServer()->getGalaxyName());
  			insertAscii(ignoreList->get(i));
  		}
  
  		setCompression(true);
  	}
  };
  
  #endif /*CHATONGETIGNORELIST_H_*/
  