Public paste
Undefined
By: sqf | Date: Dec 21 2006 10:15 | Format: None | Expires: never | Size: 719 B | Hits: 1330

  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 | while ($read(quotes.txt,%i)) {
  13.     notice $nick Quote $chr(35) $+ %i $+ . $ifmatch | inc %i
  14.    }
  15.  }
  16. }