PuNkTuReD commented on a Page, News Bot  -  Dec 30, 2008

rewrite

on *:TEXT:*:#: {
  if ($nick isop $chan) {
    if (!addnews == $strip($1)) { 
      if (!$2) { .msg $chan Please specify some news for me to add. } 
      if (!$read(News.txt, w, $2- *)) && ($2) { write News.txt News item added by $nick on $fulldate $+ : $2- | .msg $chan News Added. | halt }
      if ($read(News.txt, w, $2- *)) && ($2) { write -dw $+ * $+ $2- $+ * News.txt | write News.txt News item added by $nick on $fulldate $+ : $2- | .msg $chan News Added. | halt }
    }
    if (!delnews == $strip($1)) {
      if ($nick isop $chan) { write -dw $+ * $+ $2 $+ * News.txt | msg $chan News Item Deleted }
      else { msg $chan Your Not Oped }
    }
    if (!oldnews == $strip($1)) { write -c News.txt | msg $chan All News Deleted }
  }
  if (!news == $strip($1)) {
    if (!$read(News.txt.txt, w,* $+ $2- $+ *)) { haltdef }
    if ($read(News.txt, w,* $+ $2- $+ *)) { .msg $chan $read(News.txt, w,* $+ $2- $+ *) }
  } 
}
 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.