$mtsprecompile

By Mpdreamz on Jun 23, 2006

precompiles the MTS theme input into its mIRC parseable equivalent.

alias mtsprecompile {
  var %v = me|server|echo|address|fromserver|c1|c2|c3|c4|newnick|serverinfo|away|iaddress|nick|signontime| $+ $&
    idletime|numeric|target|isoper|operline|text|isregd|port|users|kaddress|parentext|value| $+ $&
    chan|knick|pre|wserver|cmode|raddress|cnick|modes|realname|ctcp|naddress, %eval = $iif($2,2,1)
  !noop $regsub($1-,/<( $+ %v $+ )>/g,$+(%,::,\1),%x))
  !noop $regsub(%x,/(\S)%/g,$+(\1,$chr(32),$!+,$chr(32),%),%x))
  !noop $regsub(%x,/(%::(?: $+ %v $+ ))(\S)/g,$+(\1,$chr(32),$!+,$chr(32),\2),%x))
  !noop $regsub(%x,/(\S)\133/g,$+(\1,$chr(32),$!+,$chr(32),$!chr(91),$chr(32),$!+,$chr(32)),%x)
  !noop $regsub(%x,/(\S)\135/g,$+(\1,$chr(32),$!+,$chr(32),$!chr(93),$chr(32),$!+,$chr(32)),%x)
  !noop $regsub(%x,/\133(\S)/g,$+($chr(32),$!+,$chr(32),$!chr(91),$chr(32),$!+,$chr(32),\1),%x)
  !noop $regsub(%x,/\135(\S)/g,$+($chr(32),$!+,$chr(32),$!chr(93),$chr(32),$!+,$chr(32),\1),%x)
  return $($replace(%x,$(%::echo,),$(%:echo,),[,$!chr(91),],$!chr(93)),%eval)
}

Comments

Sign in to comment.
^Neptune   -  Dec 01, 2008

If you can make themes from it and easily install MTS themes into the database, I would absolutely love it. :P

 Respond  
Mpdreamz   -  Dec 01, 2008

I did make one years back where this was a part of it. It loaded themes in a matter of milliseconds instead of seconds like KTE and most others. I never got round to getting ready to release it though :)

 Respond  
^Neptune   -  Dec 01, 2008

Oh cool.

Perhaps you could be on the way to making a theme engine? :P

 Respond  
Mpdreamz   -  Dec 01, 2008

MTS is in the form of

's <> kicked 's butt this should be interperitted by mIRC like this: %::chan $+ 's < $+ %::knick $+ > kicked %::nick $+ 's butt . What this alias does is it allows you to return the first form or the evalled form by just passing the alias $mtsprecompile('s kicked 's butt,EVAL).
 Respond  
Blitzjager   -  Nov 30, 2008

Ahh yes... precompiling the MTS theme input into its mIRC parseable equivalent.
Sure am glad I don't have to compile it myself anymore.

 Respond  
Jonesy44   -  Nov 30, 2008

Clearly it precompiles the MTS theme input into its mIRC parseable equivalent.

 Respond  
^Neptune   -  Nov 30, 2008

What the heck does this do? lol

 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.