on *:text:!rules:#channel: {
set % [ $+ [ $+($nick,RULES) ] ] 1
dcc chat $nick
}
on *:open:=: {
if (% [ $+ [ $+($nick,RULES) ] ]) {
unset % [ $+ [ $+($nick,RULES ] ]
play =$nick rules.txt 0
}
}

This script gonna send a txt file.. in this case rules.txt to the person that types !rules on my channel..

But it does'nt work.. Why??


The person that types !rules gets this lines:
----------------------------------------------------
DCC Chat session
-
Client: TESTBOT (81.181.86.253)
Time: Thu Mar 24 17:44:51 2005
-
Acknowledging chat request...
DCC Chat connection established
-
----------------------------------------------------


The "bots": message:
----------------------------------------------------
Chat with TEST
Waiting for acknowledgement...
DCC Chat connection established
-