Quote:
for the hostmask i was thinking full nick!identd@host.com

In that case you only need to write that to file. smile You can grab the nick using $gettok() with 33 (the "!") as the delimiter.
Code:
on *:dialog:anti-op:close:0:{
  if $did(3,1) {
    savebuf -o $dname 9 dat\amanti-op.txt
    ; no need to save the "nick" combo because it's included in the hostmark.
  } 
} 
on *:dialog:anti-op:init:0:{
  loadbuf -o $dname 9 dat\amanti-op.txt
  var %i = 1
  while $did(9,%i) {
    did -a $dname 3 $gettok($v1,1,33)
    inc %i
  }
}
Simpler laugh