Add $spellchecklang to return the default and per channel spellchecker language
I wanna suggest an identifier that could look and return the currently set spellchecker language, the default or the custom if an window is specified too, i will provide more examples to make it more clear.
$spellchecklang([Window Name]) $spellchecklang = with no parameters, will return the default set language. $spellchecklang(#test) = with a channel window parameter will return the language set for this channel.
Command: //echo -a IS: $spellchecklang
Command: //echo -a IS: $spellchecklang(#test)
Updated by westor (GR) over 4 years ago
It can be useful if you wanna print what language is currently set in editbox spell checker
example if someone wants to display in statusbar what language is set for the specific window or default he can't now.
And generally for future scripting usage, especially a guy asked me if he can see (via scripting) what language he set for the active window, i searched a bit and didn't found anything related.
As i saw in $editbox adiirc wiki there is already " .spellcheckword " , so what about an extra property there like " .spellchecklang " instead of a new identifier?
.spellcheckword - Gets the current word at the cursor position formatted for spellchecking. (AdiIRC only) .spellchecklang - Gets the current spellchecker set language for this window. (AdiIRC only)