Advertisement
Guest User

Untitled

a guest
Aug 13th, 2018
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
DOT 0.36 KB | None | 0 0
  1.         $in = fgets($sock);
  2.         $arg = explode(" ", $in);
  3.         if ($arg[0] == "PING") {
  4.             fputs($sock, "PONG " . $arg[1] . "\r\n");
  5.             continue;
  6.         }
  7.         if ($arg[1] == "001") {
  8.             fputs($sock, "JOIN #Nova\r\n");
  9.             fputs($sock, "PRIVMSG #Nova :`John sux at networking omfg\r\n");
  10.             continue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement