mIRC Home    About    Download    Register    News    Help

Print Thread
#34343 05/07/03 11:26 PM
Joined: Feb 2003
Posts: 48
B
brad2 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Feb 2003
Posts: 48
can someone please give me some help with echo's?

i have read the help file a million times and still dont understand why this wont echo to the channel. I used the -a , but it echos to whatever window i am in (status, another channel, etc.). I want it to echo to the channel that has that topic.

Code:
raw 332:*:{
  echo $chan 14[14 $+ $time(hh:nntt) $+ 14] 7*3 Topic is  $3-
  halt
}

raw 333:*:{
  echo $chan 14[14 $+ $time(hh:nntt) $+ 14] 7*3 Set by 15 $+ $3 $+ 3 on15 $asctime($4,dddd) $+ , $asctime($4,mmmm) $asctime($4,dd) @ $asctime($4,hh:nn:ss) $asctime($4,TT) 
  halt
}


#34344 05/07/03 11:36 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
use $2 instead of $chan in both cuz there is no $chan in this event
u can echo -a $1- in this event and see why it's $2


#34345 05/07/03 11:36 PM
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
There is no $chan in raws, $2 returns the channel. Use echo $2.

#34346 05/07/03 11:41 PM
Joined: Feb 2003
Posts: 48
B
brad2 Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Feb 2003
Posts: 48
thanks!


Link Copied to Clipboard