fix mybb integration for newer versions of mybb

see also https://sourceforge.net/p/ajax-chat/patches/9/
the change in this pull request should be backwards compatible (but is only tested on mybb v1.6.9)