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); }
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); } }
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); }
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); }
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); }
public cMonitor(IceChat.IRCConnection connection, string channel) { this.connection = connection; this.channel = channel; }
public PluginArgs(IceChat.IRCConnection connection) { this.Connection = connection; }