18-09-2008, 11:20 PM
Robin Wrote:GIAKEN Wrote:This makes things a lot better.
However, all command handling should be in the server. You could send a packet like:
Code:packet = "commands" & SEP_CHAR & Command(0)
If UBound(Command) > 0 Then
packet = packet & SEP_CHAR & UBound(Command(0))
For i = 1 To UBound(Command)
packet = packet & SEP_CHAR & Command(i)
Next i
Else
packet = packet & SEP_CHAR & 0
End If
packet = packet & END_CHAR
Server would do:
Code:Select Case Parse$(1)
If Val(Parse$(2)) = 0 Then
Case "/help"
'seperate the commands that are only single
End If
If Val(Parse$(2)) = 1 Then
'seperate the commands that have a second parameter
Case "/mute"
End If
End Select
Something like that...thoughts?
I could go for a banana right now.
Tarantulas lay their eggs in bananas.