adium/adium

Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
global HandyAdiumScripts
on run
tell application "Adium"
tell account (HandyAdiumScripts's defaultAccount)
go offline
if (get status type) is not offline then error
go online
if (get status type) is not available then error
end tell
end tell
end run