Simple script that utilizes a text file as it's database for your acronyms. Simple to use, easy to configure, and you have the option to turn it on or off. The commands are /addacro (input) (output) and /remacro (input), if you need to disable the snippet: right-click the channel and select the option. ;)
#rosetxt off
on *:input:*:{
if ($left($1-,1) != /) && ($active != Status Window) {
msg $active 4,1@}3,1-$--11,1 $1- 3,1--$-13,1{@ | halt
}
}
#rosetxt end
menu nicklist,query,channel {
$iif($group(#rosetxt).status == on, ~Rose Text~ On, ~Rose Text~ Off)
.~On~: enable #rosetxt
.~Off~:disable #rosetxt
}
It just checks if what you are typing isn\'t a command and the active window isn\'t a status window. I also removed the %kelsh because it wasn\'t needed. If you are using that kind of script, try using $iif($group(groupname).status to check if it is on or off. =)
I would use the on *:text command, and why not use an ini file?
var %voices = $gettok($readini(status.ini,voices),1-,44) or even exclude the local variable and use
if ($istok($readini(status.ini,voices),$nick,44) { etc }
I would also make an alias to add nicks. For example:
alias addstat {
if ($istok($readini(status.ini,$1),$2-,44){ $addtok($readini(status.ini,voices), $2-,44) }
else { writeini -n status.ini $1 nicks $2- }
}