Code:
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.