mIRC Home    About    Download    Register    News    Help

Print Thread
* /say: insufficient parameters #147186 15/04/06 05:33 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Hi everyone,

I was using 6.17 mIRC but after finding out that version 6.17 has a known error with .mts themes, I decided to revert back to version 6.16 where there are no problems, the problems lies with the following code:
Code:
alias capitalise {
  var %text = $regsubex($regsubex($1,/(?<=^|[.!?] )(.)|(?<=^| )(i(?= |'|$))/g,$upper(\t)),/\bmirc\b/gi,mIRC)
  return %text $+ $iif($right(%text,1) !isin .!? && $gettok(%text,-1,32) isalnum,.)
}

#uppercase on
on *:input:*:{
  if (!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) && (!$ctrlenter) && (!$inpaste) {
    say $capitalise($1-)
    haltdef
  }
}

#uppercase end


With this error msg:

Code:
* /say:insufficient parameters 


All the above code does is Captilize letters and add fullstops after every sentence, now when the group is on... the "insufficient parameters" error occurs, and when its turned off, the problem is solved, I would really like to use this feature, but i still want to use 6.16, Any ideas?

Thank you

Last edited by Skeletor; 15/04/06 05:54 PM.
Re: * /say: insufficient parameters #147187 15/04/06 06:19 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
$regsubex is a v6.17 addition so it doesn't exist in v6.16