on *:snotice:* did a /whois on you*:{
var -s %file.log = $logdir
var -s %file.log = $+(%file.log,$network)
var -s %file.log = $+(%file.log,\whois.log)
var -s %file.txt = $2 $3 whoised $me on $date at $time
.write %file.log %file.txt
}
The variables are all set correctly, but the actual file is not written.
Originally the code was
Code:
on *:snotice:* did a /whois on you*:{
.write $+($logdir,$network,\whois.log) $2 $3 whoised $me on $date at $time
}
I added the variables and expanded it to try to figure out where it was failing for writing the file.
Figured it out.. forgot to allocate for the spaces in the directory name.
You probably won't like my answer as it doesn't fix your issue, but the variable setting %file.txt is pointless. Why set a variable for something you need on the next line? Why not just:
.write %file.log $2 $3 whoised $me on $date at $time
Does the path contain space ? because mirc should display an error in that case and the dot you've put on the /write command would hide this error, use $qt in your path and see if this fix the problem
Last edited by Wims; 13/04/0912:11 AM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel