Simple PM Reader

By Dicaste on Jan 29, 2010

If you have a VPS.You can read personal message with this code.
PS : "if ( %auth === [YOURAUTH@QuakeNET] ) {"
You can change here your nick or your address. I'm wrote this script in QuakeNet server so script setting setted for QuakeNet auth.
Good Luck

on ^*:TEXT:*:?:{
  set %time ( $+ $asctime(HH:nn:ss) $+ )
  set %nick ( $+ $nick $+ )
  set %message $1-
  /write PMS.txt %time %nick %message
}

on ^*:TEXT:!read:#:{
  set %address $address($nick,5)
  set %action1 $deltok(%address,1,64)
  set %action2 $deltok(%action1,2,46)
  set %action3 $deltok(%action2,2,46)
  set %auth $deltok(%action3,2,46)
  if ( %auth === [YOURAUTH@QuakeNET] ) {
    var %i = 1
    var %x = $lines(PMS.txt)
    if ( %x > 0 ) {
      msg $chan You have %x PM(S).
    }
    while ( %i <= %x ) {
      set %messages $read(PMS.txt,%i)
      msg $chan %messages
      inc %i
    }
    if ( %x == 0 ) {
      msg $chan No PMS.
    }
    else {
      msg $chan All PMS Deleted.
    }
    var %i = 1
    while ( %i <= %x ) {
      write -dl PMS.txt 
      inc %i
    }
  }
  else {
    msg $chan You're Not My Master.
  }
}

Comments

Sign in to comment.
napa182   -  Jan 29, 2010

lol one can wish it was this ez > All PMS Deleted.

 Respond  
gooshie   -  Jan 29, 2010

They call it PMS because mad cow desease was already taken.

 Respond  
napa182   -  Jan 29, 2010

lol @ PMS.txt

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.