From db2cef1ab11cc58cc92c16fd9bccd0fe17e413e4 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 13 Jul 2010 01:09:40 +0100 Subject: Document this complex new beast. --- doc/user-guide/commands.xml | 31 ++++++++++++++++++++++++++++++- doc/user-guide/misc.xml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) (limited to 'doc/user-guide') diff --git a/doc/user-guide/commands.xml b/doc/user-guide/commands.xml index be61e4db..d0ce485e 100644 --- a/doc/user-guide/commands.xml +++ b/doc/user-guide/commands.xml @@ -763,7 +763,6 @@ - You can use this option to set your nickname in a chatroom. You won't see this nickname yourself, but other people in the room will. By default, BitlBee will use your username as the chatroom nickname. @@ -771,6 +770,36 @@ + + %-@nick + + + + By default, BitlBee tries to derive sensible nicknames for all your contacts from their IM handles. In some cases, IM modules (ICQ for example) will provide a nickname suggestion, which will then be used instead. This setting lets you change this behaviour. + + + + Whenever this setting is set for an account, it will be used for all its contacts. If it's not set, the global value will be used. + + + + It's easier to describe this setting using a few examples: + + + + FB-%full_name will make all nicknames start with "FB-", followed by the person's full name. For example you can set this format for your Facebook account so all Facebook contacts are clearly marked. + + + + [%group]%-@nick will make all nicknames start with the group the contact is in between square brackets, followed by the nickname suggestions from the IM module if available, or otherwise the handle. Because of the "-@" part, everything from the first @ will be stripped. + + + + See help nick_format for more information. + + + + handle handle, full_name, first_name diff --git a/doc/user-guide/misc.xml b/doc/user-guide/misc.xml index 175f0cd4..825d80ee 100644 --- a/doc/user-guide/misc.xml +++ b/doc/user-guide/misc.xml @@ -179,4 +179,38 @@ If you want to configure your own channels, you can use the channel se + +Nickname formatting + + +The nick_format setting can be set globally using the +set command, or per account using account +set (so that you can set a per-account suffix/prefix or have +nicknames generated from full names for certain accounts). + + + +The setting is basically some kind of format string. It can contain normal +text that will be copied to the nick, combined with several variables: + + + + %nickNickname suggested for this contact by the IM protocol, or just the handle if no nickname was suggested. + %handleThe handle/screenname of the contact. + %full_nameThe full name of the contact. + %first_nameThe first name of the contact (the full name up to the first space). + %groupThe name of the group this contact is a member of + + + +One modifier is currently available: %-@variable will remove all characters from the first @ in the string. + + + +In all cases, invalid characters (like spaces) will be stripped. Depending +on your locale settings, characters with accents will be converted to ASCII. + + + + -- cgit v1.2.3