Loading...   

  • Created By Uleat On: 07:49 PM February 23, 2018
  • Link

if (Message[0] == ';')
		{
			std::string ProcessedMessage;

			switch (c->ClientStream->ClientVersion()) {
			case EQEmu::versions::ClientVersion::Titanium:
				TitaniumToServerSayLink(ProcessedMessage, Message);
				break;
			case EQEmu::versions::ClientVersion::SoF:
				SoFToServerSayLink(ProcessedMessage, Message);
				break;
			case EQEmu::versions::ClientVersion::SoD:
				SoDToServerSayLink(ProcessedMessage, Message);
				break;
			case EQEmu::versions::ClientVersion::UF:
				UFToServerSayLink(ProcessedMessage, Message);
				break;
			case EQEmu::versions::ClientVersion::RoF:
				RoFToServerSayLink(ProcessedMessage, Message);
				break;
			case EQEmu::versions::ClientVersion::RoF2:
				RoF2ToServerSayLink(ProcessedMessage, Message);
				break;
			case EQEmu::versions::ClientVersion::Unknown:
			default:
				switch (c->GetRawConnectionType()) {
				case 'C':
					TitaniumToServerSayLink(ProcessedMessage, Message);
					break;
				case 'S':
					SoFToServerSayLink(ProcessedMessage, Message);
					break;
				case 'U':
					UFToServerSayLink(ProcessedMessage, Message);
					break;
				case '\0':
				default:
					ProcessedMessage = Message;
					break;
				}
				break;
			}

			c->SendChannelMessageByNumber(ProcessedMessage.substr(1, std::string::npos));
		}

Raw Paste Data