mIRC Homepage
Posted By: Dr4g0n double echo - 22/05/04 11:38 PM
on *:Text:*:#:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | .haltdef }
on *:Text:*:?:{ echo $nick 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | .haltdef }
on *:Action:*:#:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $1- $+ 14] | .haltdef }
on *:Action:*:?:{ echo $nick 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $1- $+ 14] | .haltdef }
on *:Input:*:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | privmsg $chan $1- | .haltdef }

alias me {
.me $1-
echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $me $1- $+ 14]
}


some one explain me why this doenst works i get the echo twice !
Posted By: Darwin_Koala Re: double echo - 22/05/04 11:44 PM
As far as I can see, the "echo" is done as part of your alias, and then is captured as ON INPUT :-)

Cheers,

DK
Posted By: Zyzzyx26 Re: double echo - 23/05/04 12:02 AM
Code:
on [color:red]^[/color]*:Text:*:#:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | haltdef }
on  [color:red]^[/color]*:Text:*:?:{ echo $nick 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | haltdef }
on  [color:red]^[/color]*:Action:*:#:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $1- $+ 14] | haltdef }
on  [color:red]^[/color]*:Action:*:?:{ echo $nick 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $1- $+ 14] | haltdef }
on  [color:red]^[/color]*:Input:*:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | privmsg $chan $1- | haltdef }
I am not what you can call an expert, but i think that might solve - not tested. (Note the ^ before the event)

Hope it helps smile

Zyzzy.
Posted By: DeathfireD Re: double echo - 23/05/04 12:14 AM
Zyzzy I tested your fix for you and it wouldent work so I took out the ^ at the input event and it works fine. The only problem is the privet message part. That dose not work. and just a though to the person that started this. Why not just get MTS and start making themes its alot easyer.

Code:
 on  ^*:Text:*:#:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | haltdef }
on  ^*:Text:*:?:{ echo $nick 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | haltdef }
on  ^*:Action:*:#:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $1- $+ 14] | haltdef }
on  ^*:Action:*:?:{ echo $nick 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $1- $+ 14] | haltdef }
 [color:red] on  *:Input:*:{ echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | privmsg $chan $1- | haltdef }[/color] 
 
Posted By: Zyzzyx26 Re: double echo - 23/05/04 01:23 AM
Sorry.. i didnt see that Input event. The ^ wont work in the imput :P

I tested that script here (now) and it works fine! The input, however, doesnt work that way (its a bit harder)

Code:
on *:input:*:{
  if /* !iswm $$1 && (# || $query($target)) {
    echo -ai 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $me $+ 14]: $1- $+ 
    .msg $ifmatch $1-
    haltdef
  }
}
Got that Input code from this thread

hope it does it wink
Posted By: Dr4g0n Re: double echo - 23/05/04 08:35 AM
thanks a lot all i have the ^ and the input like this :

on *:Input:*:{
if ($left($1-,1) == /) { / $1- }
else {
echo $chan 14[15 $+ $time(HH:nn) $+ 14] 14[15 $+ $nick $+ 14]: $1- $+  | .privmsg $chan $1- | .haltdef }
}
© mIRC Discussion Forums