summaryrefslogtreecommitdiff
path: root/docs/perl.txt
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-11-11 23:33:47 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-11-11 23:33:47 +0000
commitf0647439a9fbcc0387856c21a83bec4668d6bf56 (patch)
treec99c32a7669b346b40e3e8c13372bd14a52c0d6c /docs/perl.txt
parentf4e9745c9f5f4f9e4c5f9c7d1ab9c88481577eeb (diff)
downloadirssi-f0647439a9fbcc0387856c21a83bec4668d6bf56.zip
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
Diffstat (limited to 'docs/perl.txt')
-rw-r--r--docs/perl.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/perl.txt b/docs/perl.txt
index ad899cf0..c5f1726b 100644
--- a/docs/perl.txt
+++ b/docs/perl.txt
@@ -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