irc:Added whois command, fixed bug in parting
parent
d8aaa33a84
commit
8b3ce1ee84
|
@ -46,7 +46,7 @@ GENERIC: irc-command-parameters ( irc-message -- seq )
|
||||||
M: irc-message irc-command-parameters ( irc-message -- seq ) parameters>> ;
|
M: irc-message irc-command-parameters ( irc-message -- seq ) parameters>> ;
|
||||||
M: ping irc-command-parameters ( ping -- seq ) drop { } ;
|
M: ping irc-command-parameters ( ping -- seq ) drop { } ;
|
||||||
M: join irc-command-parameters ( join -- seq ) drop { } ;
|
M: join irc-command-parameters ( join -- seq ) drop { } ;
|
||||||
M: part irc-command-parameters ( part -- seq ) name>> 1array ;
|
M: part irc-command-parameters ( part -- seq ) channel>> 1array ;
|
||||||
M: quit irc-command-parameters ( quit -- seq ) drop { } ;
|
M: quit irc-command-parameters ( quit -- seq ) drop { } ;
|
||||||
M: nick irc-command-parameters ( nick -- seq ) drop { } ;
|
M: nick irc-command-parameters ( nick -- seq ) drop { } ;
|
||||||
M: privmsg irc-command-parameters ( privmsg -- seq ) name>> 1array ;
|
M: privmsg irc-command-parameters ( privmsg -- seq ) name>> 1array ;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2008 William Schlieper
|
! Copyright (C) 2008 William Schlieper
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
|
|
||||||
USING: accessors kernel irc.client irc.messages irc.ui namespaces ;
|
USING: accessors kernel arrays irc.client irc.messages irc.ui namespaces ;
|
||||||
|
|
||||||
IN: irc.ui.commands
|
IN: irc.ui.commands
|
||||||
|
|
||||||
|
@ -16,5 +16,9 @@ IN: irc.ui.commands
|
||||||
: query ( string -- )
|
: query ( string -- )
|
||||||
irc-tab get window>> query-nick ;
|
irc-tab get window>> query-nick ;
|
||||||
|
|
||||||
|
: whois ( string -- )
|
||||||
|
"WHOIS" swap { } clone swap <irc-client-message>
|
||||||
|
irc-tab get listener>> write-message ;
|
||||||
|
|
||||||
: quote ( string -- )
|
: quote ( string -- )
|
||||||
drop ; ! THIS WILL CHANGE
|
drop ; ! THIS WILL CHANGE
|
||||||
|
|
Loading…
Reference in New Issue