POE::C...ecting(3pm)
β¨ NAME β¨
POE::Component::IRC::Cookbook::Disconnecting β it's literally the how-to for disconnecting gracefully with PoCo-IRC π
π¦ SYNOPSIS π¦
okay so bestie, shutting down an IRC bot? it can be quick and messy, or it can be slow and graceful. pick your fighter.
π DESCRIPTION π
So. There are two ways you can shut down an IRC bot/client, and ngl they are on completely different vibes.
The quick and dirty way is, like, embarrassingly simple:
exit;
That's it. It exits the program, shuts down the socket, and everybody online just sees yet another "Connection reset by peer" or "Remote end closed the socket" or something equally π. no goodbye, no closure, just poof. it's giving ghosting.
Now, as of version 6.50, all you need to do in order to shut down gracefully is send a "shutdown" event to the IRC component. That's the whole assignment bestie π«Ά
Here's what it does for you:
- it makes sure your quit message (if you even have one) actually gets delivered β¨
- it will forcibly disconnect if there are any problems β like a faulty server or network issues, the chaotic kind π©
- and after all that, it unregisters all sessions and cleans up after itself, like a true icon π
if you're feeling extra and want to do something more elaborate on your own, go look at the following documentation: logged in,"connected","quit","disconnect", and"unregister". iykyk π
π AUTHOR π
Rocco Caputo and Hinrik Γrn SigurΓ°sson. legends fr fr π
and that's the whole page, bestie!! this was perl v5.40.1, dated 2025-08-21, and it ate. no cap. periodt πππ¦
π¦ where this page comes from
- ubuntu resolute: libpoe-component-irc-perl 6.95+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpoe-component-irc-perl 6.95+dfsg-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms