Stewie1k94 commented on a mIRC Script, !ajoin add/del for bot  -  Feb 21, 2012

Maybe something like:

on *:CONNECT:{
  var %ajoin = 1
  while (%ajoin <= $lines(ajoin.txt)) {
    join $read(ajoin.txt, %ajoin)
    inc %ajoin
  }
}
on $*:Text:/^!ajoin\s(.*)/Si:#:{
  if ($regex($nick($chan,$nick).pnick,/(!|@|&|~)/)) {
    if ($2 == add) {
      if ($read(ajoin.txt, w, $3)) msg $chan $3 is already on my ajoin list.
      else write ajoin.txt $3 | msg $chan $3 added to my ajoin list 
    }
    if ($2 == del) {
      if (!$read(ajoin.txt, w, $3)) msg $chan 3 is not on my ajoin list to delete. 
      else write -ds $+ $3 ajoin.txt | msg $chan $3 removed from my ajoin list. 
    }
    if ($2 == count) {
      msg $chan I have $lines($read(ajoin.txt, w, $3)) channel's on my ajoin list.
    }
  }
}

?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.