Ello peoples,

Still working on a small IRC Example, and got a little stuck.
When i receive a string, i need to split it and send only 1 word back to an channel... But how do i have to split this String:

[email protected] JOIN :#testchannel

The only thing i need it the nickname before the !

VB Code:
  1. Private Sub Winsock2_DataArrival(ByVal bytesTotal As Long)
  2. On Error Resume Next
  3. Dim Data As String
  4. Dim Params As String
  5.  
  6. If InStr(1, Data, "JOIN") Then
  7. Params = Replace(Split(UCase(Data)(0), "!"), vbCrLf, "")
  8.  
  9.     Winsock2.SendData "PRIVMSG " & "#testchannel" & " :Hello " & Params & vbCrLf
  10.      Exit Sub
  11. End If