All pastes #765268 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-07 22:22 UTC
rendered paste body
// BitchSlapCommand.cs created with MonoDevelop
// User: damien at 13:49 28/09/2007
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//

using System;
using Roboter.Common;

namespace Roboter.Plugins.Base
{
	public class OpCommand : ICommand
	{
		public string Command
		{
			get { return "op"; }
		}
		
		public string Name
		{
			get { return "Op"; }
		}
		
		public bool Watcher
		{
			get { return false; }
		}
		
		public void Process(string line)
		{
			string user = "";
			user = Helper.GetParameters(line);
			
			string sender = Helper.GetHost(line) + Helper.GetUser(line) + Helper.GetNick(line);
			if (host == "neptune.digitalnetworks.co.uk" || host = "pluto.digitalnetworks.co.uk"
			    and if user == "damien" || user == "rik")
				return "Hi " + Helper.GetNick(line) + " you're a Channel OP!";
			else
				return "Sorry you have to be a Channel Operator to use this Command!";
		}
		
		public void ProcessWatch(string line)
		{
			
		}
		
		public string GetHelp()
		{
			return string.Empty;
		}
	}
}