Removed duplicate CommandProcessor. It is held by the Server object now. GetSession by name now ignores case.

This commit is contained in:
Filip Maj 2016-08-29 12:48:23 -04:00
parent e106eafb6c
commit 62daa4db89
3 changed files with 10 additions and 6 deletions

View file

@ -24,12 +24,10 @@ namespace FFXIVClassic_Map_Server
class PacketProcessor
{
Server mServer;
CommandProcessor cp;
public PacketProcessor(Server server)
{
mServer = server;
cp = new CommandProcessor();
}
public void ProcessPacket(ZoneConnection client, SubPacket subpacket)
@ -69,7 +67,7 @@ namespace FFXIVClassic_Map_Server
if (chatMessage.message.StartsWith("!"))
{
if (cp.DoCommand(chatMessage.message, session))
if (Server.GetCommandProcessor().DoCommand(chatMessage.message, session))
return; ;
}