PM Blocker

By *iGhostScripts* on Dec 31, 2011

Original: http://www.hawkee.com/snippet/5733/ || i edited the parts for message received and if wasnt sent that got blocked.

Commands:

/addnick

/delnick

/shownicks

Alias AddNick {
  if ($1 isin $read(acceptednicks.txt, s, $1)) { 
  echo -a 7 $+ $1 is already on Accepted Nicks | halt }
  else { write AcceptedNicks.txt $1 $1
    echo -a 7 $+ $1 added to Accepted Nicks
  }
}
Alias DelNick {
  if ($1 isin $read(acceptednicks.txt, s, $1)) {
    write -ds $1 AcceptedNicks.txt 
  echo -a 7 $+ $1 deleted from Accepted Nicks | halt }
  else { echo -a 7 $+ $1 is not in Accepted Nicks
  }
}
Alias ShowNicks {
  if (!$window(@AcceptedNicks)) { window -znkg1 @AcceptedNicks }
  var %x $Lines(acceptednicks.txt)
  while (%x) { //echo @AcceptedNicks $gettok($read(acceptednicks.txt,%x),1,32) | dec %x }
}
on ^1:OPEN:?:*: {
  if ($read(AcceptedNicks.txt, s, $nick)) { msg $nick 7*The Message has been sent 4 to the user please wait for a reply. 7(3This could take a 5while12) }
  else { msg $nick 7This is a PM Blocker.9Please Contact me in a channel, or tell me to add you to my list, Thank you. | /halt
  }
}

Comments

Sign in to comment.
Jethro   -  Dec 31, 2011

To put it nicely, you "borrowed" this.

Also, you could've submitted those three lines of text events called slap, smack, and chips as one snippet. It's a waste of resources to post them individually. To make matters worse, I wouldn't submit that sort of one-text trigger code if I were you.

 Respond  
Abcdefmonkey   -  Dec 31, 2011

You didn't "make" this. Sorry.

 Respond  
*iGhostScripts*   -  Dec 31, 2011

i made this becauase, maybe people needed help or didn't have ideas

 Respond  
Abcdefmonkey   -  Dec 31, 2011

You know, re-posting something and only changing the output lines (ex: As you did here) isn't really benefiting anyone nor yourself. There really isn't a need to post the snippet with YOUR personal take on how the script is. If people want to change the output then they can simply change it themselves. Lol.

 Respond  
TochA1551   -  Dec 31, 2011

u can use /ingore , more easy + any script needed.

 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.