Example #1
0
        private void Script_ParseCommandCurrent(string command)
        {
            System.Diagnostics.Debug.WriteLine("parsecc:" + command);
            IceChat.IRCConnection c    = null;
            PluginArgs            args = new PluginArgs(c);

            args.Extra   = "current";
            args.Command = (String)command;
            OnCommand(args);
        }
Example #2
0
        private void Script_ParseCommand(string command, object ServerNumber)
        {
            System.Diagnostics.Debug.WriteLine("parsec:" + command);
            //how do I get the connection from a server ID

            if (Connections.ContainsKey(ServerNumber))
            {
                IceChat.IRCConnection c    = (IceChat.IRCConnection)Connections[ServerNumber];
                PluginArgs            args = new PluginArgs(c);
                args.Command = command;
                OnCommand(args);
            }
        }
Example #3
0
        private string Script_ParseIdentifier(string setting, object ServerNumber)
        {
            System.Diagnostics.Debug.WriteLine("GetIdentifierS:" + setting);
            string result = "";

            if (Connections.ContainsKey(ServerNumber))
            {
                IceChat.IRCConnection c = (IceChat.IRCConnection)Connections[ServerNumber];
                result = c.Parse(setting);
            }

            return(result);
        }
Example #4
0
        private bool Script_CheckIsVoice(string nick, string channel, object ServerNumber)
        {
            bool result = false;

            if (Connections.ContainsKey(ServerNumber))
            {
                IceChat.IRCConnection c = (IceChat.IRCConnection)Connections[ServerNumber];
                string voice            = c.Parse("$nick(" + channel + "," + nick + ").voice");
                if (voice == "$true")
                {
                    result = true;
                }
            }
            return(result);
        }
Example #5
0
        private bool Script_CheckIsOp(string nick, string channel, object ServerNumber)
        {
            bool result = false;

            //get the IAL
            //IceChat.InternalAddressList u = (IceChat.InternalAddressList)((IceChat.IRCConnection)ServerNumber).ServerSetting.IAL[nick];
            if (Connections.ContainsKey(ServerNumber))
            {
                IceChat.IRCConnection c = (IceChat.IRCConnection)Connections[ServerNumber];
                string op = c.Parse("$nick(" + channel + "," + nick + ").op");
                if (op == "$true")
                {
                    result = true;
                }
            }
            return(result);
        }
Example #6
0
 public cMonitor(IceChat.IRCConnection connection, string channel)
 {
     this.connection = connection;
     this.channel = channel;
 }
Example #7
0
 public PluginArgs(IceChat.IRCConnection connection)
 {
     this.Connection = connection;
 }
Example #8
0
 public PluginArgs(IceChat.IRCConnection connection)
 {
     this.Connection = connection;
 }
Example #9
0
 public cMonitor(IceChat.IRCConnection connection, string channel)
 {
     this.connection = connection;
     this.channel    = channel;
 }