mIRC Home    About    Download    Register    News    Help

Print Thread
double echo #83848 22/05/04 11:38 PM
Joined: Jun 2003
Posts: 68
D
Dr4g0n Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
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 !

Re: double echo #83849 22/05/04 11:44 PM
Joined: Feb 2004
Posts: 206
D
Darwin_Koala Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Feb 2004
Posts: 206
As far as I can see, the "echo" is done as part of your alias, and then is captured as ON INPUT :-)

Cheers,

DK


Darwin_Koala

Junior Brat, In-no-cent(r)(tm) and original source of DK-itis!
Re: double echo #83850 23/05/04 12:02 AM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
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.


"All we are saying is give peace a chance" -- John Lennon
Re: double echo #83851 23/05/04 12:14 AM
Joined: Oct 2003
Posts: 143
D
DeathfireD Offline
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2003
Posts: 143
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] 
 


if (Windows isin %txt.1) { /kick # $nick Windows is a badword tisk tisk tisk. }
Re: double echo #83852 23/05/04 01:23 AM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
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


"All we are saying is give peace a chance" -- John Lennon
Re: double echo #83853 23/05/04 08:35 AM
Joined: Jun 2003
Posts: 68
D
Dr4g0n Offline OP
Babel fish
OP Offline
Babel fish
D
Joined: Jun 2003
Posts: 68
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 }
}