Viewing file on branch master
| / | contrib | remotenickformat-zerowidth.tengo |
| 1 | /* |
| 2 | This script will return the nick except with multi-character usernames |
| 3 | containing a zero-width space between the first and second character letter. |
| 4 | |
| 5 | Single character usernames will be left untouched. |
| 6 | |
| 7 | This is useful to prevent remote users from nickalerting |
| 8 | IRC users of the same name when the remote user speaks. |
| 9 | |
| 10 | This result can be used in {TENGO} in RemoteNickFormat. |
| 11 | */ |
| 12 | |
| 13 | result = nick |
| 14 | if len(nick) > 1 { |
| 15 | result = string(nick[0]) + "" + nick[1:] |
| 16 | } |
| 17 |