SReject commented on a Page, Strong Password Generator  -  Jun 25, 2012
alias genpass {
  var %str = 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz^#&)(@%<>
  echo -at Password Generated : $regsubex($str(_,$r(7,10),/_/g,$mid(%str,$r(1,$len($str)),1))
Yawhatnever  -  Jun 11, 2013
$mid(, $r(1, $len($str)), 1)

should be

$mid(, $r(1, $len(%str)), 1)

Using your method, the code could be shortened to the following:

on *:TEXT:!genpass:#:notice $nick Password Generated: $genpass
alias genpass {
  var %str = 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz^#&)(@%<>
  $iif($isid, return, echo -at Password Generated:) $regsubex($str(_, $r(7, 10), /_/g, $mid(%str, $r(1, $len(%str)), 1))    
}
Sign in to comment

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.