ID:182936
 
In Windows Live Messenger I have been working on an Anti-Spam Addin in C#. I have it work in general but if anyone has made one before I need to know a few things. First I have a variable to count the amount of times a user has spammed but it is a global variable. This is a problem because if I have more than one person spamming me at one time like I was testing earlier today not both get the same message. My first question is how would I make that variable unique to everyone on my contact list. My second question is I have a time t count every minute but I'm not sure if it resets itself or do I have to tell it to start over. If so how would I restart the timer(System.Timers.Timer). My third question which applies directly to Windows Live Messenger is, is there a command I can use to block a certain user or no, and is it possible to create my own blocking procedure.

Any Help would be greatly appreciated.
Upinflames wrote (abridged):
I have been working in C#. I have a variable but it is a global variable. This is a problem. My question applies directly to Windows Live Messenger.

I cannot emphasize enough to people that this is not a good help forum for problems so unattached to BYOND. There are C# help forums. There are Windows Live Messenger help forums.

You may get an answer here, but the chances of getting an answer, much less a good answer, are much much lower here than on a support forum that actually caters to the sort of problems that you are having.