mIRC Home    About    Download    Register    News    Help

Print Thread
nick brackets #78369 07/04/04 04:16 PM
Joined: Mar 2004
Posts: 45
D
Daedalus Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2004
Posts: 45
Code:
 on ^*:TEXT:*:*: { 
  echo -ti2m $iif($target ischan,$chan,$nick) $+($chr(3),15,-[ $iif($target ischan,$nick($chan,$nick).pnick,$nick) ]-) $+($chr(3),15,$1-) 
  haltdef 
} 

on ^*:ACTION:*:*: { 
  echo -t $chan $+($chr(3),15,-[) $+($chr(3),15,$chr(2),$nick,$chr(2)) $+($chr(3),15,$1-) 
  haltdef 
} 

on *:INPUT:*: { 
  if ($left($1,1) != /) { 
    echo -ti2 $target $+($chr(3),15,-[ $me ]-) $1- 
    .msg $target $1- 
    halt 
  } 
  elseif ($1 == /me) { 
    echo -ti2 $target $+($chr(3),15,-[) $+($chr(3),15,$chr(2),$me,$chr(2)) $+($chr(3),15,$2-) 
    .me $2- 
    halt 
  } 
} 


I got these codes to alter the default nick-brackets, but when I have a script doing a /say or /me it will show up as default. Is there a way to "lock" the brackets so I don't have to script the "bracket-codes" into every script that uses /say and /me ? confused

Re: nick brackets #78370 08/04/04 12:22 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes, you'll have to make custom aliases too. Here's a sample of a "theme" system:
  • On ^*:text:*:#: haltdef | print_msg # $nick(#,$nick).pnick $1-
    On ^*:text:*:?: haltdef | print_msg $nick $nick $1-
    On ^*:action:*:#: haltdef | print_me # $nick $1-
    On ^*:action:*:?: haltdef | print_me $nick $nick $1-
    On *:input:#: if /* !iswm $1 { say $1- | halt }
    On *:input:?: if /* !iswm $1 { say $1- | halt }
    alias say msg $active $1-
    alias me describe $active $1-
    alias msg {
    if $show && $window($1) { .msg $1- | print_msg $1 $me $2- }
    else msg $1-
    }
    alias describe {
    if $show && $window($1) { .describe $1- | print_me $1 $me $2- }
    else describe $1-
    }
    alias print_msg echo -mbflirt $1 15-[ $2 ]- $3-
    alias print_me echo -mbflirt $1 15-[  $+ $2 $3-