$prefixuser » History » Version 7
Mr. BS, 01/31/2017 06:15 PM
1 | 1 | Per Amundsen | _Added in 1.9.7_ |
---|---|---|---|
2 | |||
3 | *$prefixuser* |
||
4 | |||
5 | 7 | Mr. BS | Returns the user message prefix format from [[Options_Dialog|Options]] -> [[Messages_Options|Messages]]. |
6 | 2 | Per Amundsen | |
7 | *Example* |
||
8 | |||
9 | <pre> |
||
10 | 3 | Per Amundsen | ; Replace $pnick in $prefixuser with Bob instead of $nick. |
11 | 2 | Per Amundsen | on *:TEXT:*:#:echo # $replace($prefixuser, $ $+ pnick, Bob) $1- |
12 | </pre> |
||
13 | 4 | Per Amundsen | |
14 | ----------------------------------------------------------------------------- |
||
15 | |||
16 | *$prefixuser(channel, nick, [prefix])* |
||
17 | |||
18 | 7 | Mr. BS | Replaces and formats user message prefix from [[Options_Dialog|Options]] -> [[Messages_Options|Messages]]. |
19 | 4 | Per Amundsen | |
20 | *Parameters* |
||
21 | |||
22 | channel - Channel where the nick is. |
||
23 | nick - The nick to lookup. |
||
24 | [prefix] - A custom channelnick prefix. (optional) |
||
25 | |||
26 | *Example* |
||
27 | |||
28 | <pre> |
||
29 | ; Format your own nick on current channel. |
||
30 | //echo -ag $prefixuser(#, $me) |
||
31 | </pre> |