Code button in posts

The code behind the button makes many rookie errors. The code for the button is currently:

kbbcode.addFunction('code', function() {
	kToggleOrSwap('kbbcode-code-options');
}, {
	'title': 'Code',
	'alt': 'Code display: [ code]code[/ code]',
	'id': 'kbbcode-code-button'
});[/code]

And it needs to be changed to:


[code]kbbcode.addFunction('code', function() {
	this.focus().wrapSelection('[ code]', '[/ code]', true)
}, {
	'title': 'Code',
	'alt': 'Code display: [ code]code[/ code]',
	'id': 'kbbcode-code-button'
})

Excluding the spacing I had to use so the forum does not malform the code.

You are aware that this is a fault of Kunena, and that you should report it to Kunena ? The admins won’t do anything about this bug.

I really doubt this would be a production-level bug. I’d hope it’s just the version Roblox uses.
And I thought the site admins now have control over the server machine so they can apply the fix manually without having to update Kunena.

And why would the update the code manual ? They just use Kunena out of the box. So they either need to update Kunena to the latest version in there Joomla ! Dashboard panel or the bug is on the production version of Kunena (Latest build)