SYMBOL: +server-chat+
: <irc-server-chat> ( -- irc-server-chat )
- irc-server-chat new
+ irc-server-chat new
<mailbox> >>in-messages ;
: <irc-channel-chat> ( name -- irc-channel-chat )
- irc-channel-chat new
+ irc-channel-chat new
swap >>name
<mailbox> >>in-messages
f >>password
t >>clear-participants ;
: <irc-nick-chat> ( name -- irc-nick-chat )
- irc-nick-chat new
+ irc-nick-chat new
swap >>name
<mailbox> >>in-messages ;
C: <irc-profile> irc-profile
TUPLE: irc-client profile stream in-messages out-messages
- chats is-running nick connect is-ready
- reconnect-time reconnect-attempts
- exceptions ;
+ chats is-running nick connect is-ready
+ reconnect-time reconnect-attempts
+ exceptions ;
: <irc-client> ( profile -- irc-client )
dup nickname>> irc-client new