title: certain user(s) can only use a command
body: <p>Essentially this program allows a user to use a command !weaponrequest, it then saves their request into a list, with !nextweapon you can see what the next weapon in the list is, this allows a streamer to take weapon requests in a game with a fully automated system. </p>
  
  <p>Anyway moving onto my problem, I need a way to make it so that a certain user(s) can only use a command. I know that I am going to need a list to store the users in. I will write them in manually so I don't need any kind of system for that. All I am wondering is using an IF statement how would I check to see if the user is in this list and then make it so that only that user(s) can activate that command and receive a response.</p>
  
  <pre><code>case "nextweapon":
  {
      if (new FileInfo("MyFile.txt").Length == 0)
      {
          irc.sendChatMessage("There are no weapons in the list!");
          break;
      }
  
      string Lines = File.ReadLines("MyFile.txt").Take(1).First();
      //irc.sendChatMessage(Lines);
  
      List&lt;string&gt; WeaponList = File.ReadAllLines("MyFile.txt").ToList();
      string FirstItem = WeaponList[0];
      WeaponList.RemoveAt(0);
      File.WriteAllLines("MyFile.txt", WeaponList.ToArray());
      irc.sendChatMessage(Lines);
      break;
  }
  </code></pre>
  
  <p>This is the command that I want to only be used by a certain user(s). </p>