All pastes #967034 Raw Edit

Someone

public text v1 · immutable
·published 2008-04-02 04:22 UTC
rendered paste body
string ReceivedMessage = ProcessBuf.ReadStringFromLength();
                                    Console.WriteLine("Received Message: " + ReceivedMessage);
                                    string RecievedMessage = "!notice I love cake.";

                                    if (RecievedMessage.Length > 7 && RecievedMessage[0] == Convert.ToChar("!"))
                                    {

                                        string Operation = RecievedMessage.Substring(0, 7);
                                        string Value = RecievedMessage.Substring(8);

                                        switch (Operation)
                                        {

                                            case "!notice":
                                                {
                                                    string TheNotice = ReceivedMessage.Remove(0, 8);
                                                    byte[] aResponse = Processor.SendBlueGMNotice(TheNotice);
                                                    SendEncrypted(RIV, aResponse, nClient);
                                                    MapleCrypto.GenerateIV(RIV);
                                                    break;

                                                }