All pastes #287293 Raw Edit

Miscellany

public text v1 · immutable
#287293 ·published 2006-12-21 10:57 UTC
rendered paste body
on !owner:TEXT:!readmsg *:#:{  
  if $ini(allow.ini,allowed,$chan) { 
    var %z = 0,%search = $+(*,$2-,*) 
    while ($read(msg.txt,w,%search,%z)) { 
      var %text = $read(msg.txt,w,%search,%z), %time = $calc($ctime - $gettok(%text,1,32))
      query $nick %text - $duration(%time) ago 
      var %z = $calc($readn + 1)
    } 
    query $nick · · [ End Of Messages ] from $2-
  } 
  ELSE { halt }
}
on !owner:TEXT:!msg *:#: {
  IF $ini(allow.ini,allowed,$chan) {
      write msg.txt $ctime - · [ $nick ] MSG $2-
      notice $nick the following has been added to the message list
      timer 1 1 notice $nick · [ $nick ] MSG $2- 
    }
   ELSE { halt }
}