M: irc-message write-irc\r
drop ; ! catch all unimplemented writes, THIS WILL CHANGE \r
\r
-: time-happened ( irc-message -- timestamp )\r
- [ timestamp>> ] [ 2drop now ] recover ;\r
+GENERIC: time-happened ( message -- timestamp )\r
+\r
+M: irc-message time-happened timestamp>> ;\r
+\r
+M: object time-happened drop now ;\r
\r
: print-irc ( irc-message -- )\r
[ time-happened timestamp>hms write " " write ]\r
TUPLE: irc-channel-tab < irc-tab userlist ;\r
\r
: <irc-channel-tab> ( listener ui-window -- irc-tab )\r
- irc-tab new-irc-tab\r
+ irc-channel-tab new-irc-tab\r
<pile> [ <scroller> @right grid-add ] keep >>userlist ;\r
\r
: update-participants ( tab -- )\r