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? :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
would be nice to see a working webchat based on SmartIRC
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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? :)
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...
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 :)
Ok, I changed it and try write Webchat. I will show it here where I done. :)
hello,
if you can don't remove that line please, or if you can make setting or smth
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..
would be nice to see a working webchat based on SmartIRC
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.....
that could be, I think the real sockets break the exit-on-browser-close feature in PHP...