mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
Add Irssi::command_parse_options function to parse options for a command which
have been set with Irssi::command_set_options. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4896 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f4e9745c9f
commit
f0647439a9
2 changed files with 44 additions and 0 deletions
|
|
@ -351,6 +351,20 @@ command_runsub(cmd, data, server, item)
|
|||
command_unbind(cmd, func)
|
||||
Unbind command `cmd' from function 'func.
|
||||
|
||||
command_set_options(cmd, data)
|
||||
Set options for command `cmd' to `data'. `data' is a string of
|
||||
space separated words which specify the options. Each word can be
|
||||
optionally prefixed with one of the following character:
|
||||
|
||||
'-': optional argument
|
||||
'+': argument required
|
||||
'@': optional numeric argument
|
||||
|
||||
command_parse_options(cmd, data)
|
||||
Parse options for command `cmd' in `data'. It returns a reference to
|
||||
an hash table with the options and a string with the remaining part
|
||||
of `data'. On error it returns the undefined value.
|
||||
|
||||
|
||||
*** Windows
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue