[Script] Boldify nicks mentions in messages

Added by Mr. BS about 2 years ago

Until a possible built in feature is implemented, there is a script solution. Thanks kikuchi for the $regsubex snippet and kr0n for the On Parseline suggestion.

on *:PARSELINE:in:*:{
  var %target $gettok($parseline,3,32)
  if ($gettok($parseline,2,32) == PRIVMSG && %target ischan) {
    .parseline -it : $+ $gettok($parseline,1,58) $+ : $+ $regsubex($gettok($parseline,2-,58),/([^\72\s,]+)/g,$iif(\1 != $me && \1 ison %target,$+($chr(2),\1,$chr(2)),\1))

Be free to share an improved version, I'm sure it can be optimized.

ps: $me (your own nick) is excluded because supposedly user already has this as default highlight entry in AdiIRC options.


AdiIRC v1.9.7+