Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)) {
- /play $chan News.txt
- else { msg $chan Your not oped }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement