Appending data into an array when condition is met?
<p>I'm trying to keep a timer for users in my IRC.  When a user types a message I'm trying to insert the username &amp; time of the message.  This is to stop spammers.</p>

<pre><code>if(userList.Contains(username)) {
//check the time of message
//if last message is 3 seconds ago or greater, continue
} else {
//Add username &amp; time into the array keeping all other values too
}
</code></pre>

<p>The problem is I don't know how to append data into the array.  I don't know how to copy the other existing array data into the new array with the new values. Can this be done?</p>

<p>Since array.Contains() doesn't work for two-dimensional arrays, what can I do to record the username and time? Should I insert data in two arrays?</p>

<p>Thank you for the help.</p>
