Here is a snippet of the code I'm using to do that for me, you can probably modify it to suit your needs or get one of the guys/gals here to help you out with it smile

Code:
;=============================+
; Nickname Identifier Changer |
;=============================+
alias msg {
  if ($cnick($me)) { var %tri.nickcolour $+(,$cnick($me).color) }
  else { var %tri.nickcolour 3 }
  if ($2 == $chr(160)) { echo -mi2 $1 $+(14,$timestamp) $+(4[,%tri.nickcolour,$me,4]) $chr(160) }
  elseif ($active == Status Window || $1 != $chan && !$query($1) && ($left($1,1) != =) && ($left($alias,1) != .)) {
    echo $timestamp -> $+(*,$1,*) $2-
  } 
  else { echo -mi2 $1 $+(14,$timestamp) $+(4[,%tri.nickcolour,$me,4]) $2- }
  .msg $1 $2-
  haltdef
}
alias say {
  if ($cnick($me)) { var %tri.nickcolour $+(,$cnick($me).color) }
  else { var %tri.nickcolour 3 }
  if ($1 == $chr(160)) { echo -mi2 $active $+(14,$timestamp) $+(4[,%tri.nickcolour,$me,4]) $chr(160) }
  else { echo -mi2 $active $+(14,$timestamp) $+(4[,%tri.nickcolour,$me,4]) $1- }
  if ($left($1-,1) == :) { .raw privmsg $active $+($chr(58),$1-) }
  else { .raw privmsg $active $1- }
  haltdef
}
alias describe {
  if ($2 == $chr(160)) { echo 12 -mi2 $active $+(14,$timestamp,)  $me $chr(160) }
  else { echo 12 -mi2 $active $+(14,$timestamp,)  $me $2- }
  .describe $active $2-
  haltdef
}
alias me {
  if ($1 == $chr(160)) { echo 12 -mi2 $active $+(14,$timestamp,)  $me $chr(160) }
  else { echo 12 -mi2 $active $+(14,$timestamp,)  $me $1- }
  .me $1-
  haltdef
}
on *:INPUT:*:{
  set %awayvalue 1
  if (%awaynow == on) {
    set %awaynow off
    set %awayvalue 1
    scon -at1 away
  }
  if ($active == Status Window) { return }
  elseif ($left($active,1) == @) { return }
  elseif ($1 == /me) {
    if (!$2) {
      .describe $active $chr(160)
      haltdef
    }
    else {
      .describe $active $2-
      haltdef    
    }
  }
  elseif ($left($1-,1) == /) { return }
  elseif (!$1) {
    .msg $active $chr(160)
    haltdef
  }
  else {
    .msg $active $1-
    haltdef
  }
}
on ^*:TEXT:*:*:{
  if ($cnick($nick)) { var %tri.nickcolour $+(,$cnick($nick).color) }
  else { var %tri.nickcolour 10 }
  var %target = $iif($chan,$chan,$nick)
  echo -mlbfi2 %target $+(14,$timestamp) $+(4[,%tri.nickcolour,$nick,4]) $1-
  haltdef
}
on ^*:ACTION:*:*:{
  var %target = $iif($chan,$chan,$nick)
  echo 12 -mi2lbf %target $+(14,$timestamp,)  $nick $1-
  haltdef
}
on ^*:CHAT:*:{
  if ($cnick($nick)) { var %tri.nickcolour $+(,$cnick($nick).color) }
  else { var %tri.nickcolour 10 }
  var %nickname = $nick
  echo -mi2lbf = $+ %nickname $+(14,$timestamp) $+(4[,%tri.nickcolour,$nick,4]) $1-
  haltdef
}


GigIRC Network Admin
irc.gigirc.com