Sentence ender/capitalization
Platform: mIRC
Published Sep 20, 2007
Updated Sep 20, 2007
a simple code for lazy people like me ;) to edit which presets you would like to have on or off; go to the var %tmp and replace the first on/off with the choice you decide to enable/disable the period ender and the second on/off to enable/disable the captialization at the beginning of each sentence. to disable/enable the entire snippet, a simple menu will do that work for you.
#sent.comp on
on *:INPUT:*:{
var %tmp = on,on
if ($left($1-,1) !iswm /) && ($active !iswm Status Window) {
msg $active $+($iif($gettok(%tmp,2,44) = on,$+($upper($left($1,1)),$right($1-,-1)),$1-),$iif($gettok(%tmp,1,44) = on,$chr(46),$chr(32))) }
halt
}
#sent.comp end
menu channel {
Sentence completer:
.Current status $iif($group(#sent.comp).status iswm On, On, Off):
..On/Off:$iif($group(#sent.comp).status iswm on, disable #sent.comp, enable #sent.comp)
}