napa182 commented on a Page, Simple BRB and Back script -- For mIRC bots  -  Jun 21, 2011

yes to keep it simple as so the author can understand you can do as an example:
I still wouldn't go with global vars cuz you will tend to get people setting them selvs brb an never saying back then you will have unwanted global vars

on *:TEXT:*:#:{
  tokenize 32 $strip($1-)
  if (!$($+(%,f,$wildsite),2)) { inc -u4 $+(%,f,$wildsite)
    if ($1 = brb) {
      if ($readini(brbonoff.ini,$nick,brb)) { 
        .notice $nick you are already set as brb 
      }
      else {
        writeini brb.ini $nick Brb $iif(!$2,none,$2-)
        writeini brbonoff.ini $nick brb on
        msg # » $nick will be right back. Reason: $iif(!$2,none,$2-) «
      }
    }
    if ($1 = back) {
      if ($readini(brbonoff.ini,$nick,brb)) { 
        msg # » $nick is back from: $readini(brb.ini,$nick,Brb) $+ . «
        remini brb.ini $nick Brb
        remini brbonoff.ini $nick brb on
      }
    }
  }
}
 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.