Quote:
What I would do is create a system where the commands are passed in a manner similar to that of argc and argv in main(), and then compare argv[0] for /wave and then if argc > 2 , etc etc.
I said 'similar' so yes, that translates to 'close to'. I have a feeling they are doing something where the command is the first word in the string, and aruments are seperated by spaces, (like most IRC clients), so all yo need ot do is make an array (or linked list if you want) with each word, seperated by a space put into the array/list and then do strcmp on the first word to see what command it is and then take the appropriate action. This is similar to how most IRC clients do it I would assume.