aboutsummaryrefslogtreecommitdiffstats
path: root/doc/user-guide
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-17 15:37:33 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-17 15:37:33 +0100
commit6f0ea5781ea4bd50324ee81758a9fd72ef780fcd (patch)
tree1560eecb16d736e701a4c6daecc99d29c2e87dff /doc/user-guide
parent5e98ff07af5a8d89b7c813f55dfd0972fca11297 (diff)
Making nick_format a tiny bit more complicated: Allow truncating a variable
to a certain length.
Diffstat (limited to 'doc/user-guide')
-rw-r--r--doc/user-guide/misc.xml25
1 files changed, 22 insertions, 3 deletions
diff --git a/doc/user-guide/misc.xml b/doc/user-guide/misc.xml
index 825d80ee..fcbdda0e 100644
--- a/doc/user-guide/misc.xml
+++ b/doc/user-guide/misc.xml
@@ -203,12 +203,31 @@ text that will be copied to the nick, combined with several variables:
</variablelist>
<para>
-One modifier is currently available: %-@variable will remove all characters from the first @ in the string.
+Invalid characters (like spaces) will always be stripped. Depending on your
+locale settings, characters with accents will be converted to ASCII.
</para>
<para>
-In all cases, invalid characters (like spaces) will be stripped. Depending
-on your locale settings, characters with accents will be converted to ASCII.
+See <emphasis>set nick_format2</emphasis> for some more information.
+</para>
+
+</sect1>
+
+<sect1 id="nick_format2">
+<title>Nickname formatting - modifiers</title>
+
+<para>
+Two modifiers ares currently available: You can include only the first few
+characters of a variable by putting a number right after the %. For example,
+<emphasis>[%3group]%-@nick</emphasis> will include only the first three
+characters of the group name in the nick.
+</para>
+
+<para>
+Also, you can truncate variables from a certain character using
+the <emphasis>-</emphasis>modifier. For example, you may want to leave out
+everything after the @. <emphasis>%-@handle</emphasis> will expand to
+everything in the handle up to the first @.
</para>
</sect1>