diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-03-04 14:27:14 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-03-04 14:27:14 +0000 |
commit | 919800c37ccf9ff10de80964da415b6980b9478e (patch) | |
tree | a6bf2358cf74bd7b8a488c5e1057226cd85666ea /doc | |
parent | 92db79989e2f2a2b4b2fba35bb13acb26f5a38a0 (diff) | |
download | weechat-919800c37ccf9ff10de80964da415b6980b9478e.zip |
Added inactivity time, available for plugins via get_info("inactivity")
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat.en.xml | 16 | ||||
-rw-r--r-- | doc/fr/weechat.fr.xml | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/doc/en/weechat.en.xml b/doc/en/weechat.en.xml index af92f7d32..ca1385fbc 100644 --- a/doc/en/weechat.en.xml +++ b/doc/en/weechat.en.xml @@ -2340,6 +2340,12 @@ plugin->exec_command (plugin, "freenode", "#weechat", "hello"); <entry>"away" flag</entry> </row> <row> + <entry><literal>inactivity</literal></entry> + <entry> + number of seconds since last key was pressed + </entry> + </row> + <row> <entry><literal>weechat_dir</literal></entry> <entry> WeeChat home directory @@ -2379,6 +2385,16 @@ plugin->exec_command (plugin, "freenode", "#weechat", "hello"); <screen> char *version = plugin->get_info (plugin, "version", NULL); char *nick = plugin->get_info (plugin, "nick", "freenode"); +char *inactivity = plugin->get_info (plugin, "inactivity", NULL); + +plugin->print (plugin, NULL, NULL, + "WeeChat version %s, you are %s on freenode " + "(inactive for %s seconds)", + version, nick, inactivity); + +free (version); +free (nick); +free (inactivity); </screen> </para> </section> diff --git a/doc/fr/weechat.fr.xml b/doc/fr/weechat.fr.xml index 40f728cd6..3fccda1d4 100644 --- a/doc/fr/weechat.fr.xml +++ b/doc/fr/weechat.fr.xml @@ -2388,6 +2388,13 @@ plugin->exec_command (plugin, "freenode", "#weechat", "bonjour"); <entry>drapeau "away"</entry> </row> <row> + <entry><literal>inactivity</literal></entry> + <entry> + nombre de secondes écoulées depuis que la dernière + touche a été appuyée + </entry> + </row> + <row> <entry><literal>weechat_dir</literal></entry> <entry> répertoire maison de WeeChat @@ -2427,6 +2434,16 @@ plugin->exec_command (plugin, "freenode", "#weechat", "bonjour"); <screen> char *version = plugin->get_info (plugin, "version", NULL); char *nick = plugin->get_info (plugin, "nick", "freenode"); +char *inactivity = plugin->get_info (plugin, "inactivity", NULL); + +plugin->print (plugin, NULL, NULL, + "WeeChat version %s, vous êtes %s sur freenode " + "(inactif depuis %s secondes)", + version, nick, inactivity); + +free (version); +free (nick); +free (inactivity); </screen> </para> </section> |