Public paste
Undefined
By: jew | Date: Dec 21 2006 10:23 | Format: None | Expires: never | Size: 782 B | Hits: 777

  1. on *:TEXT:news *:?:{
  2.   if ($readini(database/userlist.ini,$3,$address($nick,2)) == owner) || ($readini(database/globals.ini,global,$address($nick,2)) == owner) || ($readini(database/userlist.ini,$3,$address($nick,2)) == master) {
  3.     if ($2 == add) {
  4.       write news.txt $4-
  5.       notice $nick added $4- as news for channel $3
  6.     }
  7.   }
  8. }
  9.  
  10. on *:TEXT:newslist *:?:{
  11.   if ($readini(database/userlist.ini,$2,$address($nick,2)) == owner) || ($readini(database/globals.ini,global,$address($nick,2)) == owner) || ($readini(database/userlist.ini,$2,$address($nick,2)) == master) {
  12.     var %i = 1
  13.     var %lines = $lines($mircdir $+ quotes.txt)
  14.     while (%i <= %lines) {
  15.       notice $nick Quote $chr(35) $+ %i $+ . $read(quotes.txt,%i)
  16.       inc %i
  17.     }
  18.   }
  19. }
  20.