< > vs. ( ) - 28/02/03 03:41 PM
how would i go about replacing the < > around the names with ( ) .. example= [08:18] <Lag> hi \\\ [08:18] (Lag) hi ...
[color:#004400] ; For channel text someone else types [/color] #Custom.Display.Channel on on ^*:TEXT:*:#:{ echo $color(normal) -mbflirt $chan $& $+($chr(40), $chr(3), $nick($chan, $nick).color, $pcnick($nick), $chr(3), $chr(41)) $1- haltdef } [color:#004400] ; For channel text you type [/color] on *:INPUT:#:{ if /* !iswm $1- && $ctrlenter == $false { if ($ShouldPrefixOwn) echo $color(own) -mait $& $+($chr(40), $chr(3), $nick($chan, $me).color, $pcnick($me), $chr(3), $chr(41)) $1- else $& echo $color(own) -mait ) $1- .msg $active $1- halt } } #Custom.Display.Channel end [color:#004400] ; For query text someone else types [/color] #Custom.Display.Query on on ^*:TEXT:*:?:{ echo $color(normal) -mbflirt $nick $* $+($chr(40), $chr(3), $cnick($nick).color, $nick, $chr(3), $chr(41)) $1- haltdef } [color:#004400] ; For query text you type [/color] on *:INPUT:?:{ if /* !iswm $1- && $ctrlenter == $false { if ($ShouldPrefixOwn) echo $color(own) -mait $& $+($chr(40), $chr(3), $cnick($me).color, $me, $chr(3), $chr(41)) $1- else echo $color(own) -mait ) $1- .msg $active $1- halt } } #Custom.Display.Query end [color:#004400] ; Return the $pcnick(nick) ; after checking mirc.ini to see if the $nick($chan, $nick).pnick should be returned. [/color] alias -l pcnick return $iif($gettok($readini($mircini, Options, n2), 30, 44) == 1, $nick($chan, $1).pnick, $1) [color:#004400] ; $ShouldPrefixOwn ; returns $true or $null, depending on how you have your mIRC set up. [/color] alias -l ShouldPrefixOwn if ($gettok($readini($mircini, Options, n0), 23, 44) == 1) return $true [color:#004400] ; Popup menus to turn channel and query reformatting on and off individually. [/color] menu status,channel,query { [color:#004400] ; Main menu: Custom (Nick) [/color] Custom (Nick) [color:#004400] ; Custom (Nick) Submenu: Channel [/color] .$iif($group(#Custom.Display.Channel) == on, $style(1)) Channel:{ $iif($group(#Custom.Display.Channel) == on, .disable, .enable) #Custom.Display.Channel } [color:#004400] ; Custom (Nick) Submenu: Query [/color] .$iif($group(#Custom.Display.Query) == on, $style(1)) Query:{ $iif($group(#Custom.Display.Query) == on, .disable, .enable) #Custom.Display.Query } [color:#004400] ; Custom (Nick) Submenu: Line separator [/color] .- [color:#004400] ; Custom (Nick) Submenu: Both Channel and Query [/color] .$iif($group(#Custom.Display.Channel) == on, $style(1)) Both:{ $iif($group(#Custom.Display.Channel) == on, .disable, .enable) #Custom.Display.* } }
on *:INPUT:?:{ if /* !iswm $1- && $ctrlenter == $false { if ($ShouldPrefixOwn) echo $color(own) -mait $& $+($chr(40), $chr(3), $cnick($me).color, $me, $chr(3), $chr(41)) $1- else echo $color(own) -mait ) $1- .msg $active $1- [color:red]halt[/color] } }