Skip to content

Instantly share code, notes, and snippets.

@bingos
Created July 9, 2009 11:24
Show Gist options
  • Save bingos/143584 to your computer and use it in GitHub Desktop.
Save bingos/143584 to your computer and use it in GitHub Desktop.
Netsplit detection for POE::Component::IRC::State
=================================================
- In S_quit detect if the user is leaving due to a netsplit
- There is a msg on the QUIT
- It matches "host.domain host2.domain2" or "*.net *.split" etc.
- Stash the state for that user + channel info in {NETSPLIT}
- In S_join detect if the user is joining as the result of netjoin
- Check the nick!user@host mask against what is in {NETSPLIT}
- if so restore state for that channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment