From 6f0ea5781ea4bd50324ee81758a9fd72ef780fcd Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 17 Jul 2010 15:37:33 +0100 Subject: Making nick_format a tiny bit more complicated: Allow truncating a variable to a certain length. --- doc/user-guide/misc.xml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'doc/user-guide') 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: -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. -In all cases, invalid characters (like spaces) will be stripped. Depending -on your locale settings, characters with accents will be converted to ASCII. +See set nick_format2 for some more information. + + + + + +Nickname formatting - modifiers + + +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, +[%3group]%-@nick will include only the first three +characters of the group name in the nick. + + + +Also, you can truncate variables from a certain character using +the -modifier. For example, you may want to leave out +everything after the @. %-@handle will expand to +everything in the handle up to the first @. -- cgit v1.2.3