Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2. on *:TEXT:*:#: {
  3. if ($nick isop $chan) {
  4. if (!addnews == $strip($1)) {
  5. if (!$2) { .msg $chan Please specify some news for me to add. }
  6. if (!$read(News.txt, w, $2- *)) && ($2) { write News.txt News item added by $nick on $fulldate $+ : $2- | .msg $chan News Added. | halt }
  7. 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 }
  8. }
  9. if (!delnews == $strip($1)) {
  10. if ($nick isop $chan) { write -dw $+ * $+ $2 $+ * News.txt | msg $chan News Item Deleted }
  11. else { msg $chan Your Not Oped }
  12. }
  13. if (!oldnews == $strip($1)) { write -c News.txt | msg $chan All News Deleted }
  14. }
  15. if (!news == $strip($1)) {
  16. /play $chan News.txt
  17. else { msg $chan Your not oped }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement