SINGLETON: irc-end ! sent when the client isn't running anymore
SINGLETON: irc-disconnected ! sent when connection is lost
SINGLETON: irc-connected ! sent when connection is established
+SINGLETON: irc-ready ! sent after the client is logged in
: terminate-irc ( irc-client -- )
[ is-running>> ] keep and [
: listeners-with-participant ( nick -- seq )
irc> listeners>> values
- [ [ irc-channel-listener? ] keep and [ participants>> key? ] when* ]
+ [ [ irc-channel-listener? ] keep and [ participants>> key? ] [ drop f ] if* ]
with filter ;
: to-listeners-with-participant ( message nickname -- )