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- $+ *) }
}
}