From db218817fdc895aa2e3e52a71aa2f4423a534423 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 4 Nov 2012 23:55:36 +0100 Subject: Use configdir instead of *xchatdir* --- share/doc/perl.md | 23 ++++++++++------------- share/doc/plugins.md | 3 +-- share/doc/python.md | 2 +- share/doc/tcl.md | 22 +++++++++++----------- 4 files changed, 23 insertions(+), 27 deletions(-) (limited to 'share') diff --git a/share/doc/perl.md b/share/doc/perl.md index 683e4683..7a7aa5db 100644 --- a/share/doc/perl.md +++ b/share/doc/perl.md @@ -362,8 +362,16 @@ Returns true on success, false on failure. charset character-set used in the current context CHARSET - - event\_text <Event Name> text event format string for <Event name>
+ + + configdir HexChat config directory encoded in UTF-8. Examples:
+ /home/user/.config/hexchat
+ C:\Users\user\Appdata\Roaming\HexChat + + + + + event_text <Event Name> text event format string for <Event name>
Example:
1
@@ -442,17 +450,6 @@ Returns true on success, false on failure. similar to win_ptr except it will always be a GtkWindow * - - hexchatdir HexChat config directory encoded in UTF-8
- examples:
- /home/user/.config/hexchat
- C:\Users\user\Appdata\Roaming\HexChat - - - - hexchatdirfs same as hexchatdir except encoded in the locale file system encoding - - This function is used to retrieve certain information about the current diff --git a/share/doc/plugins.md b/share/doc/plugins.md index a46c4177..060f2c65 100644 --- a/share/doc/plugins.md +++ b/share/doc/plugins.md @@ -808,10 +808,9 @@ Changed in 2.6.1. If _servname_ is NULL, it finds the channel (or query) by the * **away:** away reason or NULL if you are not away. * **channel:** current channel name. * **charset:** character-set used in the current context. + * **configdir:** HexChat config directory, e.g.: `/home/user/.config/hexchat`. This string is encoded in UTF-8. * **event\_text <name>:** text event format string for _name_. * **gtkwin\_ptr:** (GtkWindow \*). - * **hexchatdir:** HexChat config directory, e.g.: /home/user/.config/hexchat. This string is encoded in UTF-8, which means you **should** convert it to "locale" encoding before using functions like open() or OpenFile(). For best Unicode support on Linux, convert this string using g\_filename\_from\_utf8 and on Windows convert this string to UTF-16LE (wide) and use OpenFileW() etc. - * **hexchatdirfs:** HexChat config directory, e.g.: /home/user/.config/hexchat. This string is encoded in local file system encoding, making it ideal for direct use with functions like open() or OpenFile(). For real Unicode support on Windows, it's best not to use hexchatdirfs, but hexchatdir instead. * **host:** real hostname of the server you connected to. * **inputbox:** the input-box contents, what the user has typed. * **libdirfs:** library directory. e.g. /usr/lib/hexchat. The same directory used for auto-loading plugins. This string isn't necessarily UTF-8, but local file system encoding. diff --git a/share/doc/python.md b/share/doc/python.md index dc4ff1ec..1020d645 100644 --- a/share/doc/python.md +++ b/share/doc/python.md @@ -157,9 +157,9 @@ are available to be queried: * **away:** Away reason or None if you are not away. * **channel:** Channel name of the current context. * **charset:** Charset in current context. + * **configdir:** HexChat config directory e.g.: "~/.config/hexchat". * **event_name NAME:** Returns text event string for requested event. * **gtkwin_ptr:** Current Gtk Window. - * **hexchatdir:** HexChat config directory e.g.: "~/.config/hexchat". * **host:** Real hostname of the server you connected to. * **inputbox:** Contents of inputbox. * **network:** Current network name or None. diff --git a/share/doc/tcl.md b/share/doc/tcl.md index 506da056..7f3f6db3 100644 --- a/share/doc/tcl.md +++ b/share/doc/tcl.md @@ -95,7 +95,7 @@ before Eggdrop and is broadly considered the industry standard language for auto Example:
/tcl puts "Hello, XChat World!"
-/tcl hexchatdir
+/tcl configdir @@ -680,6 +680,10 @@ The following fields are currently defined: +configdir + HexChat config directory, e.g.: /home/user/.config/hexchat. + + host real hostname of the server you connected to. @@ -709,10 +713,6 @@ The following fields are currently defined: HexChat version number. - -hexchatdir - HexChat config directory, e.g.: /home/user/.config/hexchat. -
@@ -724,7 +724,7 @@ The following fields are currently defined: See Also: -away, channel, host, me, network, server, topic, version, hexchatdir +away, channel, host, me, network, server, topic, version, configdir @@ -3581,7 +3581,7 @@ print "[timers]" See Also: -hexchatdir +configdir @@ -3594,17 +3594,17 @@ print "[timers]"

- + - + - + @@ -3614,7 +3614,7 @@ print "[timers]" - + -- cgit 1.4.1
Name:hexchatdir - Returns the current HexChat config directory.configdir - Returns the current HexChat config directory.
Synopsis:
hexchatdir
configdir
Example:
print "My XChat config directory is [hexchatdir]"
print "My XChat config directory is [configdir]"