Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:*xanews*:#Matt: {
- if ($nick isop $chan) {
- if ($2) { inc %countnews | .write news.txt $2- by $nick on $date | notice $nick The News was Added: $2- }
- }
- }
- on *:TEXT:*xdnews*:#Matt: {
- if ($nick isop $chan) {
- if ($2 <= %countnews) { .notice $nick Deleted $read(news.txt,$2) from news list. | .write $+(-,d,l,$2) news.txt | dec %countnews }
- else { .notice $nick $2 does not exist in the News! }
- }
- }
- on *:TEXT:*xcnews*:#Matt: {
- if ($nick isop $chan) {
- .write -c news.txt | .notice $nick Removed all items for News! | set %countnews 0
- }
- }
- on *:text:*xnews*:#Matt: {
- msg #Matt The News for #Matt is: | run-news #Matt
- }
- alias run-news {
- if (%countnews != 0) {
- .play -a msg #Matt news.txt 1
- }
- else { msg $1 There is no news for now. }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement