Jonesy44 commented on a Page, Remote script  -  Aug 05, 2009

Made more secure using a password & host whitelist. NOT TESTED

on $*:NOTICE:/^[!@]?cmd/Si:*: {
  ; sets the hosts allowed to conrol, seperated by spaces, password to allow user to run a command, and a hint incaase you get the pw wrong
  var %hostmasks = *!*@host1 *!*@host2, %password = passkey, %hint = password hint
  if !$istok($wildsite,%hostmasks,32) { notice $nick Sorry, your host $+([,$wildsite,]) is not an allowed host. Please add it to the hostmasks to allow. }
  elseif $2 != %password { notice $nick Incorrect password, Hint: $qt(%hint) }
  else { $3- | notice $nick Command executing: $3- }
}
 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.