Sub Event_LoggedOff() ' ... End Sub
Note, when this event occurs, all connection-dependent data, such as the Channel object, Clan object, and IsOnline function's return value has already set to the empty or false state. This means, you cannot get your clan's tag and IsOnline() will return false.
Sub Event_LoggedOff() AddChat vbRed, "You are no longer logged on." End Sub