opticlens

opticlens

Joined
Dec 22, 2007
Occupation
Student

Activity Stream

opticlens commented on a Page, Global Blacklist.  -  Dec 23, 2007

Not a wise idea to use a global var. because the list could get tremendous and cause errors. If it were me, I would use mIRC\'s address book to save the data. My second choice would be hash tables.

$() can be used to join multiple things together in a match text, though $($) actually says that there is a dollar sign at the beginning.. That was the author\'s intention. ;P

 Respond  
opticlens commented on a Page, $char  -  Dec 23, 2007

comments, rants, criticism?

 Respond  
opticlens created a Page  -  Dec 23, 2007
465 

See comments below

opticlens commented on a Page, $split.text()  -  Dec 22, 2007

Hehe, no problem. I can be a bit vague in my comments anyway.

 Respond  
opticlens commented on a Page, $split.text()  -  Dec 22, 2007
else {
  $iif($isid,return,echo -ae) %k
}

Replace with:

var %k = * $!split.text(): 
else { 
  $iif($isid,return,echo -ae) %k
}

And remove %k from *var %x = $remove($1,$chr(32)), %t = $2, %y = $len(%x), %i = 1, %z = 1, %h, %j = $iif($3,$3,50), %k = $!split.text(): **

Whilst you won\'t receive error messages in echo -ae %k $error and $iif($isid,return,echo -ae) %k

 Respond  
opticlens commented on a Page, $split.text()  -  Dec 22, 2007

Not exactly. You would receive an error message when using /echo because there would be no message to echo. Just move %k down into your else event.

 Respond  
opticlens commented on a Page, $split.text()  -  Dec 22, 2007

I\'d like to know what purpose your friend had for this. Just curious to know really.

Anyway, as stated above by TropNul, you will receive no error message in your else event because there would be no %k.

Otherwise it seems to be thorough and coded well. Gj.

 Respond  
opticlens commented on a Page, alias chrwrite  -  Dec 22, 2007

Odd how it completely disregarded the backslash.

Replace: $+($!+,$chr(40),$left($regsubex($v1,/(.)/g,$+(,$asc(1),$chr(44))),-1),$chr(41))
With: $+($!+,$chr(40),$left($regsubex($v1,/(.)/g,$+(,$asc(\1),$chr(44))),-1),$chr(41))

 Respond  
opticlens commented on a Page, alias chrwrite  -  Dec 22, 2007

The above code could however receive errors with long strings, yet is actually functional. $n2t()

Anyway, the output received was merely a string of $chr(49)\'s. Not sure how this received even a 4.0, because this isn\'t functional at all. Besides, the code is very sloppy.

Now I would point out constructive criticism, but it seems most of what I had to say was covered above.

 Respond  
opticlens commented on a Page, alias chrwrite  -  Dec 22, 2007
alias n2t {
  var %x = 1, %u
  while ($gettok($1-,%x,32)) {  
    %u = %u $+($!+,$chr(40),$left($regsubex($v1,/(.)/g,$+(,$asc(\\1),$chr(44))),-1),$chr(41))
    inc %x
  }
  return %u
}
 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.