Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $in = fgets($sock);
- $arg = explode(" ", $in);
- if ($arg[0] == "PING") {
- fputs($sock, "PONG " . $arg[1] . "\r\n");
- continue;
- }
- if ($arg[1] == "001") {
- fputs($sock, "JOIN #Nova\r\n");
- fputs($sock, "PRIVMSG #Nova :`John sux at networking omfg\r\n");
- continue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement