$prefixuser » History » Revision 9
Revision 8 (Per Amundsen, 02/24/2017 09:22 PM) → Revision 9/11 (Per Amundsen, 03/06/2017 11:26 PM)
_Added in 1.9.7_
*$prefixuser*
Returns the user message prefix format from [[Options_Dialog|Options]] -> [[Messages_Options|Messages]] -> [[Messages_Options#Message-prefix-user|Prefix User]].
*Example*
<pre>
; Replace $pnick in $prefixuser with Bob instead of $nick.
on *:TEXT:*:#:echo # $replace($prefixuser, $ $+ pnick, Bob) $1-
</pre>
-----------------------------------------------------------------------------
*$prefixuser(channel, nick, [prefix])*
Replaces and formats user message prefix from [[Options_Dialog|Options]] -> [[Messages_Options|Messages]] -> [[Messages_Options#Message-prefix-user|Prefix User]].
*Parameters*
channel - Channel where the nick is.
nick - The nick to lookup.
[prefix] - A custom channelnick prefix. (optional)
*Example*
<pre>
; Format your own nick on current channel.
//echo -ag $prefixuser(#, $me)
; Formar your own nick using your nick color.
//echo -ag $prefixuser(#, $chr(3) $+ $nick(#,$me).color $+ $me $+ $chr(3))
</pre>