This is what i trying to do:
alias msg {
set %inptext $2-
settime ; <<-- Set the timestamp to curent time
if ($me isop $active) { goto op }
if ($me isvo $active) { goto vo }
else { goto normal }
:op ; <<-- Show the @ prefix beside the nick.
echo $color(own text) $active %tstmp $+ $chr(3) $+ %cbrackets $+ %right $+ $chr(3) $chr(3) $+ %opcolor $+ @ $+ $chr(3) $+ $chr(3) $+ $+ $me $chr(3) $+ %cbrackets $+ %left $+ $chr(3) $+ $chr(3) $+ %inptext | .msg $active %inptext | goto end
:vo ; <<-- Show the + prefix beside the nick.
echo $color(own text) $active %tstmp $+ $chr(3) $+ %cbrackets $+ %right $+ $chr(3) $chr(3) $+ %voiccolor $+ + $+ $chr(3) $+ $chr(3) $+ $+ $me $chr(3) $+ %cbrackets $+ %left $+ $chr(3) $+ $chr(3) $+ %inptext | .msg $active %inptext | goto end
:normal ; <<-- Show nothing beside the nick.
echo $color(own text) $active %tstmp $+ $chr(3) $+ %cbrackets $+ %right $+ $chr(3) $chr(3) $+ $chr(3) $+ $+ $me $chr(3) $+ %cbrackets $+ %left $+ $chr(3) $+ $chr(3) $+ %inptext | .msg $active %inptext | goto end
:end
}
%tstmp <<-- Timestamp as the format i want.
%cbrackets <<-- Color of brackets..
%right <<-- left bracket (pointing to right)
%left <<-- right bracket (pointing to left)
the problem is that it sends the echo two times, i want to echo all msg's send.. but when i type a msg i have to echo it to me, and then i have to send the msg to the active window.. the problem is that it echo it when it sending it.. so that result in two echo on the same msg :tongue: i tryed to use $show, but couldent solve it