VB Code:
  1. If InStr(sockBuff, "PRIVMSG") <> 0 Then
  2.         Select Case True
  3.             Case InStr(sockBuff, "!roll") <> 0:
  4.                 y = Split(Mid(sockBuff, InStr(sockBuff, " : !roll ")), " ")
  5.                 sendToIRC (sockBuff)
  6.              '   status(0) = DCCCHat
  7.             '    sckDCC(sckDCC.UBound).Connect ircGetIP(y(UBound(y) - 1)), Replace(y(UBound(y)), "", "")

I commented out the the last two lines. I thought they were causing me an error, and I don't want DCC anyway. Where I have "!roll" entered, it used to say "DCC CHAT". It keeps getting an error at the following bit of code:

VB Code:
  1. y = Split(Mid(sockBuff, InStr(sockBuff, " : !roll ")), " ")

I hit F2 and typed in SPLIT, but I'm afraid I am not able to figure out what all it's trying to do here. Can anyone explain it to me?




Also, how would I go about getting the first "CyberInfantry" only out of the following string:

:[email protected] PRIVMSG #shadowfall :!roll