PHP - IRC Bot Not sending message Help

后端 未结 2 1211
故里飘歌
故里飘歌 2021-01-25 17:54

Currently I am making a IRC that sends a message onto the IRC main channel. Here is my code:



        
2条回答
  •  -上瘾入骨i
    2021-01-25 18:35

    Change:

    $msg = $_GET['msg'];
    ...
    fwrite($ircSocket, "PRIVMSG " . $channel . " :" . $msg = $_GET['msg'] . "\n");
    

    To:

    $msg = $_POST['msg'];
    ...
    fwrite($ircSocket, "PRIVMSG " . $ircChannel . " :" . $msg . "\n");
    

提交回复
热议问题