Menu

IRC chat problem

Help
2003-02-09
2003-03-06
  • Nobody/Anonymous

    Hello

    I try make a irc gateway with SmartIRC but when I stop or close browser user is still on server and there is still process on background ... Any help? :)

     
    • Mirco Bauer

      Mirco Bauer - 2003-02-09

      in the very first versions I tried to run bots through the browser and I didn't want to terminate the bot when I close the browser. So I added a special setting to SmartIRC :) since then it's still in it... but it makes with PHP CLI no sense, today you wouldn't run a bot through the browser... so just comment that setting out, it's in SmartIRC.php search for "function Net_SmartIRC" in that funtion is ignore_user_abort(true); just comment that line out...
      so then the script will be killed when the browser is closed...

      I think I will remove that line anyhow from the code for the next release...

       
    • Mirco Bauer

      Mirco Bauer - 2003-02-09

      oh one thing I forgot, can you tell me any details/URL/sample code? I am curious about your thing... seems to be the first Webchat based on SmartIRC :)

       
    • Nobody/Anonymous

      Ok, I changed it and try write Webchat. I will show it here where I done. :)

       
    • Nobody/Anonymous

      hello,
      if you can don't remove that line please, or if you can make setting or smth

       
    • Nobody/Anonymous

      I'm making a webchat with it actually.. just a few things to work out as far as how I will do it and I'll post a url..

       
      • Mirco Bauer

        Mirco Bauer - 2003-03-05

        would be nice to see a working webchat based on SmartIRC

         
    • Anonymous

      Anonymous - 2003-03-06

      A Note On 'ignore_user_abort" funtion:
      If you comment this out, but run your script with
      $irc->setUseSockets(TRUE);
      set to true, THE SCRIPT WILL NOT TERMINATE WHEN YOU EXIT THE BROWSER!!!
      Just let others know so they don't make the same mistake I did.....

       
      • Mirco Bauer

        Mirco Bauer - 2003-03-06

        that could be, I think the real sockets break the exit-on-browser-close feature in PHP...

         

Log in to post a comment.