Ok here is the code. I commented out the Nick parse stuff for now and replaced it with just Rub3X for now since that is my IRC nick. I am trying to make the login for it but as you can see I am having trouble. I don't know exactly how to use the IP and check if the person who is typing .login has the same IP as the one logged in. And tbh I doubt you will understand it since it mostly deals with raw IRC commands. Is there a way to pause just what happens in ONE sub while the program continues? Cause...
VB Code:
ElseIf C(3) = ":" & Prefix & "remove" & Chr(13) Then wsClient.SendData(wsClient.StringToBytes("USERIP Rub3X" & vbCrLf)) If TyperIP = UserIP Then wsClient.SendData(wsClient.StringToBytes("PRIVMSG " & IrcChan & " :Removing bot please wait..." & vbCrLf)) wsClient.SendData(wsClient.StringToBytes("QUIT" & " :Leaving" & vbCrLf)) End
That trys to compare the person's IP who is typing vs the UserIP which is the IP of the user logged in. But in order to do this you need to send the USERIP raw command and by the time i can do that it's too late and it's already went into a false value of that makes any sense. So I think if I can pause just what is happening in one sub it will work.




Reply With Quote