Exemple #1
0
        public static void SendDeath(string message)
        {
            string nick = CRCStrings.RandomName(CRCOptions.GameFaction);

            client.SendMessage(SendType.Message, CRCOptions.ChannelProxy(), nick + FAKE_DELIM + CRCOptions.GetFaction() + META_DELIM + message);
            CRCDisplay.OnChannelMessage(nick, message);
            CRCGame.OnChannelMessage(nick, CRCOptions.GameFaction, message);
        }
Exemple #2
0
 private static void OnConnected(object sender, EventArgs e)
 {
     Users.Clear();
     crcNicks.Clear();
     lastName    = CRCOptions.Name;
     lastChannel = CRCOptions.ChannelProxy();
     lastFaction = CRCOptions.GetFaction();
     client.Login(CRCOptions.Name, CRCStrings.Localize("crc_name") + " " + Application.ProductVersion);
     client.RfcJoin(CRCOptions.ChannelProxy());
 }
Exemple #3
0
 public static void UpdateSettings()
 {
     if (CRCOptions.Name != lastName)
     {
         client.RfcNick(CRCOptions.Name);
         lastName = CRCOptions.Name;
     }
     if (CRCOptions.ChannelProxy() != lastChannel)
     {
         Users.Clear();
         client.RfcPart(lastChannel);
         client.RfcJoin(CRCOptions.ChannelProxy());
         lastChannel = CRCOptions.ChannelProxy();
     }
     if (CRCOptions.GetFaction() != lastFaction)
     {
         foreach (string nick in crcNicks.Keys)
         {
             client.SendMessage(SendType.CtcpReply, nick, CRCOptions.GetFaction());
         }
         lastFaction = CRCOptions.GetFaction();
     }
 }
Exemple #4
0
 public static void Send(string message)
 {
     client.SendMessage(SendType.Message, CRCOptions.ChannelProxy(), message);
     CRCDisplay.OnOwnChannelMessage(CRCOptions.Name, message);
     CRCGame.OnChannelMessage(CRCOptions.Name, CRCOptions.GetFaction(), message);
 }